[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder - __init__.py:1.7 TemporaryFolder.py:1.9

Chris McDonough chrism@zope.com
Sun, 20 Jul 2003 12:18:31 -0400


Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder
In directory cvs.zope.org:/tmp/cvs-serv8090/lib/python/Products/TemporaryFolder

Modified Files:
	__init__.py TemporaryFolder.py 
Log Message:
- Create a new container class for DBTab purposes.

- Deprecate the TemporaryFolder class and ad-hoc mounting machinery
  which surrounds it by removing it from the Add.. list.
  Instead of using this class to provide a ZODB mount point, we now
  use DBTab.



=== Zope/lib/python/Products/TemporaryFolder/__init__.py 1.6 => 1.7 ===
--- Zope/lib/python/Products/TemporaryFolder/__init__.py:1.6	Wed Aug 14 18:25:13 2002
+++ Zope/lib/python/Products/TemporaryFolder/__init__.py	Sun Jul 20 12:18:26 2003
@@ -26,7 +26,8 @@
         icon='www/tempfolder.gif',
         meta_type='Temporary Folder',
         constructors=(TemporaryFolder.constructTemporaryFolderForm,
-                      TemporaryFolder.constructTemporaryFolder)
+                      TemporaryFolder.constructTemporaryFolder),
+        visibility=0 # dont show this in the add list for 2.7+ (use dbtab)
         )
 
     context.registerHelp()


=== Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py 1.8 => 1.9 ===
--- Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py:1.8	Wed May 28 11:28:27 2003
+++ Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py	Sun Jul 20 12:18:26 2003
@@ -49,11 +49,18 @@
 
 constructTemporaryFolderForm=HTMLFile('dtml/addTemporaryFolder', globals())
 
+class SimpleTemporaryContainer(OFS.Folder.Folder):
+    # dbtab-style container class
+    meta_type = 'Temporary Folder'
+    icon = 'misc_/TemporaryFolder/tempfolder.gif'
 
 class MountedTemporaryFolder(MountPoint, OFS.SimpleItem.Item):
     """
     A mounted RAM database with a basic interface for displaying the
     reason the database did not connect.
+
+    XXX this is only here for backwards compatibility purposes:
+    DBTab uses the SimpleTemporaryContainer class instead.
     """
     icon = 'p_/broken'
     manage_options = ({'label':'Traceback', 'action':'manage_traceback'},)