programatically adding acl user folder
Greets; Found a nice program on the net that allows me to import users from another app via xml-rpc and programatically create a new acl user folder in zope. Now while this works seemlessly in 2.6.4 in 2.7x it functions however I cannot enter the folder regardless of what role I have, from the ZMI. Digging around in the code I find this statement at the very end. ---------------------------- security.declareProtected(ManageUsersPermission,'getUser') def getUsers(self): """Return a list of user objects""" return map(self.getUser,self.getUserNames()) ---------------------------- Further digging on the net to try and get an understanding of this, I find Dieters comments here; http://mail.zope.org/pipermail/zope-dev/2002-January/014715.html with a summary of " "declareProtected" requires the wrapping" Im wondering if this is the source of the problem or do I need to look elsewhere? /ch
Chris H wrote at 2005-2-20 16:02 -0500:
... Found a nice program on the net that allows me to import users from another app via xml-rpc and programatically create a new acl user folder in zope. Now while this works seemlessly in 2.6.4 in 2.7x it functions however I cannot enter the folder regardless of what role I have
Security problems were introduced from Zope 2.7.2 --> 2.7.3 causing unmotivated "unauthorized" exceptions. Maybe, that is what you see? The next Zope release (and the current CVS version) should fix them. -- Dieter
Dieter Maurer wrote:
Security problems were introduced from Zope 2.7.2 --> 2.7.3 causing unmotivated "unauthorized" exceptions. Maybe, that is what you see?
The next Zope release (and the current CVS version) should fix them.
Thanks Dieter. Will check it out to see whats going on. /ch
Chris H wrote:
Thanks Dieter. Will check it out to see whats going on.
/ch
Just a follow-up again to confirm that it works with 2.8.0a1. Your response was accurate as usual. Much appreciated. While zope raises an error with the actual XML-RPC based python code now, that is fixable..:) Regards and thanks /ch
participants (2)
-
Chris H -
Dieter Maurer