[Zope3-checkins] CVS: Zope3/src/zope/app/tree - adapters.py:1.5
node.py:1.3 utils.py:1.3
Philipp von Weitershausen
philikon at philikon.de
Fri Apr 23 02:27:03 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/tree
In directory cvs.zope.org:/tmp/cvs-serv15906/src/zope/app/tree
Modified Files:
adapters.py node.py utils.py
Log Message:
* use absolute imports rather than relative ones
* update some docstrings
=== Zope3/src/zope/app/tree/adapters.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/tree/adapters.py:1.4 Sat Mar 13 10:21:37 2004
+++ Zope3/src/zope/app/tree/adapters.py Fri Apr 23 02:27:01 2004
@@ -16,8 +16,7 @@
This module contains adapters necessary to use common objects with
statictree. The most prominent ones are those for ILocation and
IContainer. We also provide adapters for any object, so we don't end
-up with ComponentLookupErrors whenever encounter unknown
-objects. Explicit is better than implement EXCEPT WHEN IT'S NOT...
+up with ComponentLookupErrors whenever encounter unknown objects.
$Id$
"""
@@ -30,7 +29,7 @@
from zope.app.container.interfaces import IReadContainer
from zope.app.site.interfaces import ISite
-from interfaces import IUniqueId, IChildObjects
+from zope.app.tree.interfaces import IUniqueId, IChildObjects
__metaclass__ = type
=== Zope3/src/zope/app/tree/node.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/tree/node.py:1.2 Sat Mar 6 11:50:33 2004
+++ Zope3/src/zope/app/tree/node.py Fri Apr 23 02:27:01 2004
@@ -18,9 +18,8 @@
from zope.interface import implements
from zope.app import zapi
-
-from interfaces import INode, IUniqueId, IChildObjects, \
- ITreeStateEncoder
+from zope.app.tree.interfaces import INode, IUniqueId, IChildObjects
+from zope.app.tree.interfaces import ITreeStateEncoder
__metaclass__ = type
@@ -31,9 +30,8 @@
object and provides the INode interface to be relied on. In that
way, it works similar to an adapter.
- This implementation is designed to be as lazy as
- possible. Especially, it will only create child nodes when
- necessary.
+ This implementation is designed to be as lazy as possible.
+ Especially, it will only create child nodes when necessary.
"""
implements(INode)
@@ -82,13 +80,13 @@
return self._id
def hasChildren(self):
- """See the zope.app.tree.interfaces.INode"""
+ """See zope.app.tree.interfaces.INode"""
# we could actually test for the length of the result of
# getChildObjects(), but we need to watch performance
return self._get_child_objects_adapter().hasChildren()
def getChildObjects(self):
- """See the zope.app.tree.interfaces.INode"""
+ """See zope.app.tree.interfaces.INode"""
filter = self.filter
children = self._get_child_objects_adapter().getChildObjects()
if filter:
=== Zope3/src/zope/app/tree/utils.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/tree/utils.py:1.2 Wed Mar 3 21:01:38 2004
+++ Zope3/src/zope/app/tree/utils.py Fri Apr 23 02:27:01 2004
@@ -19,7 +19,7 @@
import zlib
from zope.interface import implements
-from interfaces import ITreeStateEncoder
+from zope.app.tree.interfaces import ITreeStateEncoder
class TreeStateEncoder:
"""Encodes tree state
More information about the Zope3-Checkins
mailing list