dabo Commit
Revision 3776
Date: 2007-12-06 07:01:26 -0800 (Thu, 06 Dec 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3776

Changed:
U   trunk/dabo/dObject.py

Log:
Fixed a bug in the __repr__() method when the class name and filename are the 
same and located in the base module of the framework.


Diff:
Modified: trunk/dabo/dObject.py
===================================================================
--- trunk/dabo/dObject.py       2007-12-06 05:14:02 UTC (rev 3775)
+++ trunk/dabo/dObject.py       2007-12-06 15:01:26 UTC (rev 3776)
@@ -84,7 +84,7 @@
                        classparts.pop(pos+1)
                # Remove the duplicate class name that happens
                # when the class name is the same as the file.
-               while classparts[-1] == classparts[-2]:
+               while (len(classparts) > 1) and (classparts[-1] == 
classparts[-2]):
                        classparts.pop()
                classname = ".".join(classparts)
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to