[Zope-CVS] CVS: Products/DBTab - DBTab.py:1.13 Mount.py:1.7

Shane Hathaway shane@zope.com
Fri, 18 Apr 2003 22:27:12 -0400


Update of /cvs-repository/Products/DBTab
In directory cvs.zope.org:/tmp/cvs-serv10949

Modified Files:
	DBTab.py Mount.py 
Log Message:
set an attribute, not just a variable, and output something better in __repr__()

=== Products/DBTab/DBTab.py 1.12 => 1.13 ===
--- Products/DBTab/DBTab.py:1.12	Fri Apr 18 22:20:03 2003
+++ Products/DBTab/DBTab.py	Fri Apr 18 22:27:12 2003
@@ -197,7 +197,7 @@
         if args.has_key('auto_create'):
             # b/w compatibility
             if asBoolean(args['auto_create']) and not self.container_class:
-                container_class = 'OFS.Folder.Folder'
+                self.container_class = 'OFS.Folder.Folder'
             del args['auto_create']
 
         if args.has_key('mount_paths'):


=== Products/DBTab/Mount.py 1.6 => 1.7 ===
--- Products/DBTab/Mount.py:1.6	Wed Apr 16 15:59:24 2003
+++ Products/DBTab/Mount.py	Fri Apr 18 22:27:12 2003
@@ -56,7 +56,7 @@
         raise NotImplementedError
 
     def __repr__(self):
-        return "%s(id=%s)" % (self.__class__.__name__, self.id)
+        return "%s(id=%s)" % (self.__class__.__name__, repr(self.id))
 
 
     def _getMountedConnection(self, anyjar):