Commit 4c0fd68c authored by Chris McDonough's avatar Chris McDonough

- 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.
parent 81fa13a3
......@@ -22,9 +22,9 @@ lives in another ZODB.
To understand this fully, you'll need to read the source of
ZODB.Mount.MountPoint.
$Id: TemporaryFolder.py,v 1.8 2003/05/28 15:28:27 chrism Exp $
$Id: TemporaryFolder.py,v 1.9 2003/07/20 16:18:26 chrism Exp $
"""
__version__='$Revision: 1.8 $'[11:-2]
__version__='$Revision: 1.9 $'[11:-2]
import Globals
from Globals import HTMLFile
......@@ -49,11 +49,18 @@ def constructTemporaryFolder(self, id, title=None, REQUEST=None):
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'},)
......
......@@ -13,7 +13,7 @@
"""
Temporary Folder initialization routines
$Id: __init__.py,v 1.6 2002/08/14 22:25:13 mj Exp $
$Id: __init__.py,v 1.7 2003/07/20 16:18:26 chrism Exp $
"""
import ZODB # for testrunner to be happy
......@@ -26,7 +26,8 @@ def initialize(context):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment