[Checkins] SVN: CMF/trunk/CMFCore/ Forward port fix for issue #450 from 2.0 branch.

Tres Seaver tseaver at palladion.com
Mon Aug 14 11:18:36 EDT 2006


Log message for revision 69477:
  Forward port fix for issue #450 from 2.0 branch.

Changed:
  U   CMF/trunk/CMFCore/FSDTMLMethod.py
  U   CMF/trunk/CMFCore/tests/test_FSDTMLMethod.py

-=-
Modified: CMF/trunk/CMFCore/FSDTMLMethod.py
===================================================================
--- CMF/trunk/CMFCore/FSDTMLMethod.py	2006-08-14 15:14:34 UTC (rev 69476)
+++ CMF/trunk/CMFCore/FSDTMLMethod.py	2006-08-14 15:18:35 UTC (rev 69477)
@@ -43,6 +43,7 @@
     """
 
     meta_type = 'Filesystem DTML Method'
+    _owner = None
     _proxy_roles = ()
     _cache_namespace_keys = ()
     _reading = 0

Modified: CMF/trunk/CMFCore/tests/test_FSDTMLMethod.py
===================================================================
--- CMF/trunk/CMFCore/tests/test_FSDTMLMethod.py	2006-08-14 15:14:34 UTC (rev 69476)
+++ CMF/trunk/CMFCore/tests/test_FSDTMLMethod.py	2006-08-14 15:18:35 UTC (rev 69477)
@@ -69,6 +69,18 @@
         self.failUnless( 'foo' in self.RESPONSE.headers.keys() )
         self.failUnless( 'bar' in self.RESPONSE.headers.keys() )
 
+    def test_ownership( self ):
+        script = self._makeOne( 'testDTML', 'testDTML.dtml' )
+        script = script.__of__(self.root)
+        # fsdtmlmethod has no owner
+        owner_tuple = script.getOwnerTuple()
+        self.assertEqual(owner_tuple, None)
+
+        # and ownership is not acquired [CMF/450]
+        self.root._owner= ('/foobar', 'baz')
+        owner_tuple = script.getOwnerTuple()
+        self.assertEqual(owner_tuple, None)
+
     def test_304_response_from_cpm( self ):
         # test that we get a 304 response from the cpm via this template
 



More information about the Checkins mailing list