[Zope-Checkins] SVN: Zope/branches/2.11/lib/python/AccessControl/Role.py Rest of patch for LP#245649.

Tres Seaver tseaver at palladion.com
Sat Jul 5 21:12:16 EDT 2008


Log message for revision 88051:
  Rest of patch for LP#245649.

Changed:
  U   Zope/branches/2.11/lib/python/AccessControl/Role.py

-=-
Modified: Zope/branches/2.11/lib/python/AccessControl/Role.py
===================================================================
--- Zope/branches/2.11/lib/python/AccessControl/Role.py	2008-07-06 00:20:20 UTC (rev 88050)
+++ Zope/branches/2.11/lib/python/AccessControl/Role.py	2008-07-06 01:12:15 UTC (rev 88051)
@@ -603,7 +603,8 @@
 
     def possible_permissions(self):
         d={}
-        for p in Products.__ac_permissions__:
+        Products_permissions = getattr(Products, '__ac_permissions__', ())
+        for p in Products_permissions:
             d[p[0]]=1
         for p in self.aq_acquire('_getProductRegistryData')('ac_permissions'):
             d[p[0]]=1



More information about the Zope-Checkins mailing list