[Zope3-checkins] CVS: Zope3/src/zope/app/container -
contained.py:1.1.2.3
Jim Fulton
jim at zope.com
Fri Sep 12 16:25:51 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv26253/src/zope/app/container
Modified Files:
Tag: parentgeddon-branch
contained.py
Log Message:
Got more tests passing
=== Zope3/src/zope/app/container/contained.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/container/contained.py:1.1.2.2 Fri Sep 12 15:15:20 2003
+++ Zope3/src/zope/app/container/contained.py Fri Sep 12 16:25:20 2003
@@ -296,7 +296,7 @@
name = object.__class__.__name__
dot = name.rfind('.')
- if dot:
+ if dot >= 0:
suffix = name[dot:]
name = name[:dot]
else:
@@ -312,4 +312,4 @@
# Make sure tha name is valid. We may have started with something bad.
self.checkName(n, object)
- return name
+ return n
More information about the Zope3-Checkins
mailing list