[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/AccessControl/Impl Use canonical form of aq_acquire (function instead of method)

Philipp von Weitershausen philikon at philikon.de
Sat Jul 28 11:52:14 EDT 2007


Log message for revision 78430:
  Use canonical form of aq_acquire (function instead of method)
  

Changed:
  U   Zope/branches/philikon-aq/lib/python/AccessControl/ImplPython.py
  U   Zope/branches/philikon-aq/lib/python/AccessControl/Implementation.py

-=-
Modified: Zope/branches/philikon-aq/lib/python/AccessControl/ImplPython.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/AccessControl/ImplPython.py	2007-07-28 15:03:08 UTC (rev 78429)
+++ Zope/branches/philikon-aq/lib/python/AccessControl/ImplPython.py	2007-07-28 15:52:13 UTC (rev 78430)
@@ -293,7 +293,7 @@
                         raise Unauthorized(name, value)
                 else:
                     # Try to acquire roles
-                    try: roles = container.aq_acquire('__roles__')
+                    try: roles = aq_acquire(container, '__roles__')
                     except AttributeError:
                         if containerbase is not accessedbase:
                             if self._verbose:

Modified: Zope/branches/philikon-aq/lib/python/AccessControl/Implementation.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/AccessControl/Implementation.py	2007-07-28 15:03:08 UTC (rev 78429)
+++ Zope/branches/philikon-aq/lib/python/AccessControl/Implementation.py	2007-07-28 15:52:13 UTC (rev 78430)
@@ -95,7 +95,7 @@
 
 
 # start with the default, mostly because we need something for the tests
-setImplementation("C")
+setImplementation("PYTHON")
 
 # allow the implementation to change from the default
 _implementation_set = 0



More information about the Zope-Checkins mailing list