[Zope3-Users] Where unauthorized is raised?
darryl at darrylcousins.net.nz
Fri Jul 21 03:33:26 EDT 2006
I'm having a permissions problem with a formlib form and an adapter.
I have put the following in zope/schema/_bootstrapfields.py
class Field ...
def get(self, object):
print sys.exc_type, sys.exc_value
return getattr(object, self.__name__)
the print I get is:
(<tfws.portal.member.adapters.MemberEditFormForMember object at
0xb5b5bc8c>, 'clear_photo', 'tfws.view')
What I need to know is where is this Unauthorized being raised to debug
further (as my principal indeed has the permission tfws.view). I need to
the only raise I can find that matches is in zope/security/checker but
'print's that I have added there give me nothing.
More information about the Zope3-users