[Checkins] SVN: zope.fssync/branches/test-work/s - tests still fail but work with zope.app.fssync

Alex Chapman achapman at zope.com
Tue Apr 13 17:42:53 EDT 2010


Log message for revision 110831:
   - tests still fail but work with zope.app.fssync
  

Changed:
  U   zope.fssync/branches/test-work/setup.py
  U   zope.fssync/branches/test-work/src/zope/fssync/pickle.py
  U   zope.fssync/branches/test-work/src/zope/fssync/tests/__init__.py
  U   zope.fssync/branches/test-work/src/zope/fssync/tests/test_docs.py

-=-
Modified: zope.fssync/branches/test-work/setup.py
===================================================================
--- zope.fssync/branches/test-work/setup.py	2010-04-13 21:40:04 UTC (rev 110830)
+++ zope.fssync/branches/test-work/setup.py	2010-04-13 21:42:53 UTC (rev 110831)
@@ -57,6 +57,7 @@
       install_requires = ['setuptools',
                           'zope.annotation',
                           'zope.component',
+                          'zope.dottedname',
                           'zope.filerepresentation',
                           'zope.interface',
                           'zope.lifecycleevent',

Modified: zope.fssync/branches/test-work/src/zope/fssync/pickle.py
===================================================================
--- zope.fssync/branches/test-work/src/zope/fssync/pickle.py	2010-04-13 21:40:04 UTC (rev 110830)
+++ zope.fssync/branches/test-work/src/zope/fssync/pickle.py	2010-04-13 21:42:53 UTC (rev 110831)
@@ -28,7 +28,7 @@
 `loads()` function.  The name of the outermost object is not stored in
 the pickle unless it is stored in the object.
 
->>> from zope.location.tests import TLocation
+>>> from zope.fssync.tests import TLocation
 >>> root = TLocation()
 >>> interface.directlyProvides(root, IContainmentRoot)
 >>> o1 = DataLocation('o1', root, 12)
@@ -85,7 +85,7 @@
 
 from zope.location.interfaces import ILocation
 from zope.location.traversing import LocationPhysicallyLocatable
-from zope.location.tests import TLocation
+from zope.fssync.tests import TLocation
 from zope.traversing.interfaces import ITraverser
 from zope.traversing.interfaces import IContainmentRoot
 
@@ -102,7 +102,7 @@
 class PathPersistentIdGenerator(object):
     """Uses traversal paths as persistent ids.
 
-    >>> from zope.location.tests import TLocation
+    >>> from zope.fssync.tests import TLocation
     >>> root = TLocation()
     >>> interface.directlyProvides(root, IContainmentRoot)
     >>> o1 = TLocation(); o1.__parent__ = root; o1.__name__ = 'o1'

Modified: zope.fssync/branches/test-work/src/zope/fssync/tests/__init__.py
===================================================================
--- zope.fssync/branches/test-work/src/zope/fssync/tests/__init__.py	2010-04-13 21:40:04 UTC (rev 110830)
+++ zope.fssync/branches/test-work/src/zope/fssync/tests/__init__.py	2010-04-13 21:42:53 UTC (rev 110831)
@@ -1,2 +1,15 @@
-#
-# This file is necessary to make this directory a package.
+import zope.interface
+import zope.traversing.interfaces
+
+from zope.location.location import Location
+
+class TLocation(Location):
+    """Simple traversable location used in examples."""
+
+    zope.interface.implements(zope.traversing.interfaces.ITraverser)
+
+    def traverse(self, path, default=None, request=None):
+        o = self
+        for name in path.split(u'/'):
+           o = getattr(o, name)
+        return o

Modified: zope.fssync/branches/test-work/src/zope/fssync/tests/test_docs.py
===================================================================
--- zope.fssync/branches/test-work/src/zope/fssync/tests/test_docs.py	2010-04-13 21:40:04 UTC (rev 110830)
+++ zope.fssync/branches/test-work/src/zope/fssync/tests/test_docs.py	2010-04-13 21:42:53 UTC (rev 110831)
@@ -27,7 +27,7 @@
 
 
 from zope.traversing.interfaces import IContainmentRoot
-from zope.location.tests import TLocation
+from zope.fssync.tests import TLocation
 
 from zope.fssync import pickle
 



More information about the checkins mailing list