The pecan.decorators module includes useful decorators for creating Pecan applications.
Decorator used to flag controller methods as being “exposed” for access via HTTP, and to configure that access.
Parameters: |
|
---|
If utilizing the pecan.hooks TransactionHook, allows you to flag a controller method or class as being wrapped in a transaction, regardless of HTTP method.
Parameters: | ignore_redirects – Indicates if the hook should ignore redirects for this controller or not. |
---|
Flags a controller method as accepting non-canoncial URLs.
If utilizing the pecan.hooks TransactionHook, allows you to flag a controller method to perform a callable action after the commit is successfully issued.
Parameters: | action – The callable to call after the commit is successfully issued. |
---|
If utilizing the pecan.hooks TransactionHook, allows you to flag a controller method to perform a callable action after the rollback is successfully issued.
Parameters: | action – The callable to call after the rollback is successfully issued. |
---|