[Zope] Permissions and Instances of ZClasses

Dave Case dav3xor at gmail.com
Wed Oct 26 18:32:24 EDT 2005


I'm trying to build a  product through the  ZMI (like the example in
The Zope Book), I have some DTML methods in a ZClass were I want to be
able to do a SecurityCheckPermission() on a permission that I have
defined in the containing product.  When I view the instance of the
DTML, it doesn't see the permission.  I'm able to at least see the
'View' permission...  When I look around in the Permissions and Define
Permissions of the various objects (both the ZClass, and the DTML
methods), I don't see my permission in the lists, except for under
'Class Permissions'  in the Permissions tab for the ZClass (were I
have highlighted it, which I assume is correct?)

The call to SecurityCheckPermission() looks like this...

<dtml-if expr="_.SecurityCheckPermission('Manage Diary',this())">

I'm thinking maybe I'm calling SecurityCheckPermission in the wrong
context?  Making a product certainly can be confusing at times.  :)

Thanks!

--
David Case
Dav3xor at gmail.com
www.builddiary.net


More information about the Zope mailing list