[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates - PageTemplateFile.py:1.20.2.3

Tres Seaver tseaver at zope.com
Mon Jan 26 13:15:45 EST 2004


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

Modified Files:
      Tag: Zope-2_6-branch
	PageTemplateFile.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/Products/PageTemplates/PageTemplateFile.py 1.20.2.2 => 1.20.2.3 ===
--- Zope/lib/python/Products/PageTemplates/PageTemplateFile.py:1.20.2.2	Mon Oct 14 18:33:57 2002
+++ Zope/lib/python/Products/PageTemplates/PageTemplateFile.py	Mon Jan 26 13:15:43 2004
@@ -148,6 +148,12 @@
         """
         return None
 
+    def getOwnerTuple(self):
+        return None
+
+    def getWrappedOwner(self):
+        return None
+
     def __getstate__(self):
         from ZODB.POSException import StorageError
         raise StorageError, ("Instance of AntiPersistent class %s "




More information about the Zope-Checkins mailing list