[Zope-CVS] CVS: Products/DBTab - DBTab.py:1.12
Shane Hathaway
shane@zope.com
Fri, 18 Apr 2003 22:20:04 -0400
Update of /cvs-repository/Products/DBTab
In directory cvs.zope.org:/tmp/cvs-serv9938
Modified Files:
DBTab.py
Log Message:
added backward compatibility with auto_create
=== Products/DBTab/DBTab.py 1.11 => 1.12 ===
--- Products/DBTab/DBTab.py:1.11 Fri Apr 18 22:15:29 2003
+++ Products/DBTab/DBTab.py Fri Apr 18 22:20:03 2003
@@ -194,11 +194,11 @@
setattr(self, key, None)
# Read deprecated parameters
- for key in (
- 'auto_create',
- ):
- if args.has_key(key):
- del args[key]
+ if args.has_key('auto_create'):
+ # b/w compatibility
+ if asBoolean(args['auto_create']) and not self.container_class:
+ container_class = 'OFS.Folder.Folder'
+ del args['auto_create']
if args.has_key('mount_paths'):
mps = args['mount_paths']