[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder - component.xml:1.1.2.1 config.py:1.1.2.1 TemporaryFolder.py:1.8.2.1 __init__.py:1.6.68.1
Chris McDonough
chrism@zope.com
Mon, 21 Jul 2003 12:38:53 -0400
Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder
In directory cvs.zope.org:/tmp/cvs-serv17213/lib/python/Products/TemporaryFolder
Modified Files:
Tag: Zope-2_7-branch
TemporaryFolder.py __init__.py
Added Files:
Tag: Zope-2_7-branch
component.xml config.py
Log Message:
Merge changes from HEAD since the release of Zope 2.7a1 into the Zope-2_7-branch in preparation for release of Zope 2.7b1.
=== Added File Zope/lib/python/Products/TemporaryFolder/component.xml ===
<component prefix="Products.TemporaryFolder.config">
<sectiontype name="temporarystorage" datatype=".TemporaryStorage"
implements="ZODB.storage">
<description>
A nonundoing storage which keeps data in RAM and which does
not need to be packed unless cyclic references are kept.
</description>
<key name="name" default="Temporary Storage"/>
</sectiontype>
</component>
=== Added File Zope/lib/python/Products/TemporaryFolder/config.py ===
from ZODB.config import BaseConfig
class TemporaryStorage(BaseConfig):
def open(self):
from Products.TemporaryFolder.TemporaryStorage import TemporaryStorage
return TemporaryStorage(self.config.name)
=== Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py 1.8 => 1.8.2.1 ===
--- Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py:1.8 Wed May 28 11:28:27 2003
+++ Zope/lib/python/Products/TemporaryFolder/TemporaryFolder.py Mon Jul 21 12:36:17 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'},)
=== Zope/lib/python/Products/TemporaryFolder/__init__.py 1.6 => 1.6.68.1 ===
--- Zope/lib/python/Products/TemporaryFolder/__init__.py:1.6 Wed Aug 14 18:25:13 2002
+++ Zope/lib/python/Products/TemporaryFolder/__init__.py Mon Jul 21 12:36:17 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()