[Zope3-checkins] CVS: Zope3/src/zope/app/dav/ftests - dav.py:1.3

Philipp von Weitershausen philikon at philikon.de
Tue Feb 24 11:52:00 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/dav/ftests
In directory cvs.zope.org:/tmp/cvs-serv27994/src/zope/app/dav/ftests

Modified Files:
	dav.py 
Log Message:


This test was adding ZPTPages for a functional DAV test. What it
really needs to test is accessing dublin core properties via DAV,
which works with any persistent annotatable object. Thus, use one of
those instead of depending on an maybe-in-the-future-optional package.




=== Zope3/src/zope/app/dav/ftests/dav.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dav/ftests/dav.py:1.2	Sun Sep 21 13:30:44 2003
+++ Zope3/src/zope/app/dav/ftests/dav.py	Tue Feb 24 11:51:30 2004
@@ -16,13 +16,19 @@
 $Id$
 """
 
-from zope.testing.functional import HTTPTestCase
-from zope.app.content.zpt import ZPTPage
-from zope.app.content.folder import Folder
+from persistent import Persistent
 from transaction import get_transaction
+from zope.interface import implements
+from zope.testing.functional import HTTPTestCase
+
+from zope.app.folder import Folder
+from zope.app.interfaces.annotation import IAttributeAnnotatable
 
 __metaclass__ = type
 
+class Page(Persistent):
+    implements(IAttributeAnnotatable)    
+
 class DAVTestCase(HTTPTestCase):
 
     def createFolders(self, path):
@@ -47,7 +53,6 @@
         get_transaction().commit()
 
     def addPage(self, path, content):
-        page = ZPTPage()
+        page = Page()
         page.source = content
         self.createObject(path, page)
-




More information about the Zope3-Checkins mailing list