[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - xmlobject.py:1.5
Steve Alexander
steve@cat-box.net
Thu, 2 Jan 2003 10:03:52 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv29577/src/zope/app/browser/skins/rotterdam
Modified Files:
xmlobject.py
Log Message:
provided page view in test. changed test for no getParent() to explicitly
say 'parent is not None', as just 'if parent:' fails for an empty folder,
as it is basically an empty sequence.
=== Zope3/src/zope/app/browser/skins/rotterdam/xmlobject.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/xmlobject.py:1.4 Mon Dec 30 10:54:25 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/xmlobject.py Thu Jan 2 10:03:20 2003
@@ -133,10 +133,12 @@
def singleBranchTree(self, root=''):
parent = getParent(self.context)
- while parent:
+ while parent is not None:
if IReadContainer.isImplementedBy(parent):
container = parent
- view = queryView(container, 'singleBranchTree.xml', self.request)
+ view = queryView(container,
+ 'singleBranchTree.xml',
+ self.request)
return view()
else:
parent = getParent(parent)