[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/ftests - test_contents.py:1.6

Philipp von Weitershausen philikon at philikon.de
Tue Feb 24 11:51:35 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/container/ftests
In directory cvs.zope.org:/tmp/cvs-serv28033/src/zope/app/browser/container/ftests

Modified Files:
	test_contents.py 
Log Message:


Use a simple persistent annotatable object instead of relying on
zope.app.file for the File content type.




=== Zope3/src/zope/app/browser/container/ftests/test_contents.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/container/ftests/test_contents.py:1.5	Thu Oct  2 12:23:19 2003
+++ Zope3/src/zope/app/browser/container/ftests/test_contents.py	Tue Feb 24 11:51:35 2004
@@ -12,17 +12,22 @@
 #
 ##############################################################################
 """
-
 $Id$
 """
 
 import unittest
 
-from zope.testing.functional import BrowserTestCase
-from zope.app.content.file import File
+from persistent import Persistent
 from transaction import get_transaction
+from zope.testing.functional import BrowserTestCase
+from zope.interface import implements
+
 from zope.app import zapi
+from zope.app.interfaces.annotation import IAttributeAnnotatable
 from zope.app.interfaces.dublincore import IZopeDublinCore
+
+class File(Persistent):
+    implements(IAttributeAnnotatable)
 
 class Test(BrowserTestCase):
 




More information about the Zope3-Checkins mailing list