[Zope-Checkins] SVN: Zope/branches/2.9/ Merged trunk r77296 into
2.9 branch.
Stefan H. Holek
stefan at epy.co.at
Mon Jul 2 06:16:05 EDT 2007
Log message for revision 77298:
Merged trunk r77296 into 2.9 branch.
Collector #1306: Missing acquisition context on local roles screen.
Changed:
U Zope/branches/2.9/doc/CHANGES.txt
U Zope/branches/2.9/lib/python/AccessControl/Role.py
-=-
Modified: Zope/branches/2.9/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.9/doc/CHANGES.txt 2007-07-02 10:14:18 UTC (rev 77297)
+++ Zope/branches/2.9/doc/CHANGES.txt 2007-07-02 10:16:05 UTC (rev 77298)
@@ -8,6 +8,8 @@
Bugs fixed
+ - Collector #1306: Missing acquisition context on local roles screen.
+
- Collector #2153: Supporting unquoted cookies with spaces.
- Collector #2295: Comments in PythonScripts could lead to syntax
Modified: Zope/branches/2.9/lib/python/AccessControl/Role.py
===================================================================
--- Zope/branches/2.9/lib/python/AccessControl/Role.py 2007-07-02 10:14:18 UTC (rev 77297)
+++ Zope/branches/2.9/lib/python/AccessControl/Role.py 2007-07-02 10:16:05 UTC (rev 77298)
@@ -341,11 +341,12 @@
if mlu < 0: raise OverflowError
un = getattr(aclu, 'user_names', _notfound)
if un is not _notfound:
+ un = aclu.__of__(item).user_names # rewrap
unl = un()
# maxlistusers of 0 is list all
if len(unl) > mlu and mlu != 0:
raise OverflowError
- for name in un():
+ for name in unl:
dict[name]=1
item = getattr(item, 'aq_parent', _notfound)
if item is _notfound:
More information about the Zope-Checkins
mailing list