[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins]
From:       Tres Seaver <tseaver () palladion ! com>
Date:       2008-07-06 1:14:07
Message-ID: 20080706011407.44A51399E8 () mail ! zope ! org
[Download RAW message or body]

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

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

-=-
Modified: Zope/branches/2.10/lib/python/AccessControl/Role.py
===================================================================
--- Zope/branches/2.10/lib/python/AccessControl/Role.py	2008-07-06 01:12:15 UTC (rev 88051)
+++ Zope/branches/2.10/lib/python/AccessControl/Role.py	2008-07-06 01:14:06 UTC (rev 88052)
@@ -541,7 +541,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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic