agx tgv creation_roles & setDefaultRoles
Huron <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
When using the tgv creation_roles on a type, the generated code uses the
function "setDefaultRoles"
security.declarePrivate('setDefaultRoles')
def setDefaultRoles(permission, roles):
'''
Sets the defaults roles for a permission.
'''
[ ... ]
# Note that we can only use the default Zope roles in calls to
# setDefaultRoles(). The default Zope roles are:
# Anonymous, Manager, and Owner.
Thus, custom added roles cannot be set that way ... I've had some time do
discover this stupid thing ... so I let you know just in case ... perhaps
the tgv creation_roles should use another way to do that ...
cheers,
--
huron
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click