1.

What Do You Mean By Function Decorators And Predicates In Pyramid?

Answer»

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.

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.



Discussion

No Comment Found