Commit 5192b5ff authored by Chris McDonough's avatar Chris McDonough

Rearrange some imports that were evidently causing circular dependencies.

Alias the SimpleTemporaryContainer at the package level.
parent 7a21b86e
......@@ -22,15 +22,17 @@ lives in another ZODB.
To understand this fully, you'll need to read the source of
ZODB.Mount.MountPoint.
$Id: TemporaryFolder.py,v 1.9 2003/07/20 16:18:26 chrism Exp $
$Id: TemporaryFolder.py,v 1.10 2003/08/02 17:49:06 chrism Exp $
"""
__version__='$Revision: 1.9 $'[11:-2]
__version__='$Revision: 1.10 $'[11:-2]
import os, os.path
import Globals
from Globals import HTMLFile
from ZODB.Mount import MountPoint
import OFS
import os, os.path
from OFS.Folder import Folder
from OFS.SimpleItem import Item
from ZODB.DB import DB
from TemporaryStorage import TemporaryStorage
......@@ -49,12 +51,12 @@ def constructTemporaryFolder(self, id, title=None, REQUEST=None):
constructTemporaryFolderForm=HTMLFile('dtml/addTemporaryFolder', globals())
class SimpleTemporaryContainer(OFS.Folder.Folder):
class SimpleTemporaryContainer(Folder):
# dbtab-style container class
meta_type = 'Temporary Folder'
icon = 'misc_/TemporaryFolder/tempfolder.gif'
class MountedTemporaryFolder(MountPoint, OFS.SimpleItem.Item):
class MountedTemporaryFolder(MountPoint, Item):
"""
A mounted RAM database with a basic interface for displaying the
reason the database did not connect.
......
......@@ -13,11 +13,15 @@
"""
Temporary Folder initialization routines
$Id: __init__.py,v 1.7 2003/07/20 16:18:26 chrism Exp $
$Id: __init__.py,v 1.8 2003/08/02 17:49:06 chrism Exp $
"""
import ZODB # for testrunner to be happy
# we import this so that config files can use the shorter name,
# it's not used directly
from TemporaryFolder import SimpleTemporaryContainer as TemporaryContainer
def initialize(context):
import TemporaryFolder
context.registerClass(
......
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