[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/location/ More minor
fixes.
Gintautas Miliauskas
gintas at pov.lt
Tue Feb 22 06:26:23 EST 2005
Log message for revision 29245:
More minor fixes.
Changed:
U Zope3/trunk/src/zope/app/location/interfaces.py
U Zope3/trunk/src/zope/app/location/pickling.py
-=-
Modified: Zope3/trunk/src/zope/app/location/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/app/location/interfaces.py 2005-02-22 11:25:19 UTC (rev 29244)
+++ Zope3/trunk/src/zope/app/location/interfaces.py 2005-02-22 11:26:23 UTC (rev 29245)
@@ -20,6 +20,7 @@
from zope.interface import Interface, Attribute
from zope import schema
+
class ILocation(Interface):
"""Objects that have a structural location"""
@@ -31,14 +32,13 @@
required=False,
default=None)
+
class ISublocations(Interface):
- """Provide access to sublocations
- """
+ """Provide access to sublocations."""
def sublocations():
"""Return sublocations
An iterable of objects whose __parent__ is the object
providing the interface is returned.
-
"""
Modified: Zope3/trunk/src/zope/app/location/pickling.py
===================================================================
--- Zope3/trunk/src/zope/app/location/pickling.py 2005-02-22 11:25:19 UTC (rev 29244)
+++ Zope3/trunk/src/zope/app/location/pickling.py 2005-02-22 11:26:23 UTC (rev 29245)
@@ -47,7 +47,7 @@
>>> o1.o2.o4 = Location(); o1.o2.o4.__parent__ = o1.o2
>>> o1.o3.o5 = Location(); o1.o3.o5.__parent__ = o1.o3
- In addition, o3 has a non-locatin reference to o4.
+ In addition, o3 has a non-location reference to o4.
>>> o1.o3.o4 = o1.o2.o4
@@ -82,6 +82,7 @@
return unpickler.load()
+
class CopyPersistent(object):
"""Persistence hooks for copying locations
@@ -149,7 +150,7 @@
# in pickle.py. The pickle checks the boolean value
# of the id, rather than whether it is None.
pid += 1
-
+
self.pids_by_id[id(object)] = pid
self.others_by_pid[pid] = object
return pid
More information about the Zope3-Checkins
mailing list