[Zope-Checkins] CVS: Zope/lib/python/AccessControl - ZopeSecurityPolicy.py:1.17

Andreas Jung andreas@zope.com
Thu, 13 Dec 2001 09:25:19 -0500


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

Modified Files:
	ZopeSecurityPolicy.py 
Log Message:
merge from 2.5 branch (string methods)

=== Zope/lib/python/AccessControl/ZopeSecurityPolicy.py 1.16 => 1.17 ===
             # Provide special rules for the acquisition attributes
             if type(name) is StringType:
-                if name[:3]=='aq_' and name not in valid_aq_:
+                if name.startswith('aq_') and name not in valid_aq_:
                     return 0
 
             containerbase = aq_base(container)