[Zope-Checkins] CVS: Zope/lib/python/App - special_dtml.py:1.24.6.1

Tres Seaver tseaver at zope.com
Mon Jan 26 13:16:14 EST 2004


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

Modified Files:
      Tag: Zope-2_6-branch
	special_dtml.py 
Log Message:


Fix breakage in tests 

  - AccessControl/Owned.py:

    o Expand API to include explicit methods for retrieving the
      "owner tuple" and the "wrapped owner".
      
    o Deprecate the 'getOwner(1)' wart.

    o Add tests.

  - AccessControl/ZopeSecurityPolicy.py:

    o For the Python version of validate, use the new 'getWrappedOwner'
      API, rather than painfully reconstructing it ourselves.  Also, skip
      tests for acquisition trickery if the container is not a wrapper
      (should repair breakage in DCWorkflow scripts w/ proxy roles).

    o XXX:  Note that cAccessControl needs to follow suit!

  - App/special_dtml.py, Products/PageTemplates/PageTemplateFile.py:

    o Implement the new Owned API.


=== Zope/lib/python/App/special_dtml.py 1.24 => 1.24.6.1 ===
--- Zope/lib/python/App/special_dtml.py:1.24	Wed Aug 14 17:31:41 2002
+++ Zope/lib/python/App/special_dtml.py	Mon Jan 26 13:15:43 2004
@@ -107,6 +107,12 @@
         '''
         return None
 
+    def getOwnerTuple(self):
+        return None
+
+    def getWrappedOwner(self):
+        return None
+
     def _exec(self, bound_data, args, kw):
         # Cook if we haven't already
         self._cook_check()




More information about the Zope-Checkins mailing list