Hi,
In an application using ZODB traversal, I need to create a view whose
required permission depends on the state of the "context" object to which
the view is applied.
Can I just create an "un-protected" view (without static permission) and
check the permission in the view initialization code (and raise an
HTTPForbidden exception if the required permission is missing), or is there
a more elegant way to handle such a use case?
Best regards,
Thierry
-- 
  https://www.ulthar.net -- http://pyams.readthedocs.io

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAPX_VWAChxFOKJrLUs8L%3DRUz6r6u9xQn2fwCFSqZTBA1ehK%2BAQ%40mail.gmail.com.

Reply via email to