What do you mean by Function Decorators and Predicates in Pyramid?

devquora
devquora

Posted On: Feb 22, 2018

 

Function Decorators: Pyramid on all occasions is written with help of Python. All the features known and easy to use in the Python language, like the function decorators, are also available to Pyramid developers. The functions have a decorator called @view_config which also has a route assigned to it and is named done.

Predicates:  A question which gives either true or false and which also shortens the collection of situations in which routes or views can be called. In such situations, we use predicates to limit matching of a callable view to a route name of home and to the post HTTP requests.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Python Pyramid interview questions

    State the features of Python Pyramid?

    Python Pyramid is an open sourced framework with the following features: Simplicity:  Using Python Pyramid is simple...

    Python Pyramid interview questions

    What do you mean by Event and Subscribers in Python Pyramid?

    An event, in Pyramid, is an object performance at fascinating points during the lifespan of an application. A subscribe..

    Python Pyramid interview questions

    What is the function of renderers in Python Pyramid?

    Renderers consumes the conversions results of the non-response. With the help of renderer, the users can make writing v..