[Zope-Checkins] CVS: Zope/lib/python/App - class_init.py:1.11.4.1

Brian Lloyd brian@zope.com
Fri, 12 Apr 2002 11:27:21 -0400


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv7613

Modified Files:
      Tag: Zope-2_4-branch
	class_init.py 
Log Message:
Fixed bug #275


=== Zope/lib/python/App/class_init.py 1.11 => 1.11.4.1 ===
         for acp in self.__ac_permissions__:
             pname, mnames = acp[:2]
-            pr=PermissionRole(pname)
+            if len(acp) > 2:
+                roles = acp[2]
+                pr = PermissionRole(pname, roles)
+            else:
+                pr=PermissionRole(pname)
             for mname in mnames:
                 dict[mname+'__roles__']=pr
+
+