Commit 0536874a authored by Jim Fulton's avatar Jim Fulton

moved Sessions and Daft folders here.

parent e4601f7b
...@@ -14,15 +14,15 @@ Provide an area where people can work without others seeing their changes. ...@@ -14,15 +14,15 @@ Provide an area where people can work without others seeing their changes.
A Draft folder is a surrogate for a folder. It get\'s subobjects by A Draft folder is a surrogate for a folder. It get\'s subobjects by
gettingthem from a session copy of a base folder. gettingthem from a session copy of a base folder.
$Id: DraftFolder.py,v 1.5 1997/12/18 16:45:40 jeffrey Exp $''' $Id: DraftFolder.py,v 1.6 1997/12/19 17:06:20 jim Exp $'''
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals import time, OFS.SimpleItem, AccessControl.Role
import Persistence, Acquisition, Globals
import AccessControl.User, Session import AccessControl.User, Session
from string import rfind from string import rfind
from App.Management import Management from App.Management import Management
from Globals import HTMLFile from Globals import HTMLFile
from ImageFile import ImageFile
addForm=HTMLFile('draftFolderAdd', globals()) addForm=HTMLFile('draftFolderAdd', globals())
...@@ -49,14 +49,13 @@ def hack(self): ...@@ -49,14 +49,13 @@ def hack(self):
class DraftFolder(Persistence.Persistent, class DraftFolder(Persistence.Persistent,
AccessControl.Role.RoleManager, AccessControl.Role.RoleManager,
SimpleItem.Item, OFS.SimpleItem.Item,
Acquisition.Implicit, Acquisition.Implicit,
Management, Management,
): ):
meta_type='Draft Folder' meta_type='Draft Folder'
icon='DraftFolderIcon' icon='DraftFolderIcon'
DraftFolderIcon=ImageFile('www/DraftFolder.gif', globals())
isPrincipiaFolderish=1 isPrincipiaFolderish=1
manage_options=( manage_options=(
...@@ -212,6 +211,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session): ...@@ -212,6 +211,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
############################################################################## ##############################################################################
# #
# $Log: DraftFolder.py,v $ # $Log: DraftFolder.py,v $
# Revision 1.6 1997/12/19 17:06:20 jim
# moved Sessions and Daft folders here.
#
# Revision 1.5 1997/12/18 16:45:40 jeffrey # Revision 1.5 1997/12/18 16:45:40 jeffrey
# changeover to new ImageFile and HTMLFile handling # changeover to new ImageFile and HTMLFile handling
# #
......
...@@ -12,11 +12,11 @@ __doc__='''A drop-in object that represents a session. ...@@ -12,11 +12,11 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.8 1997/12/18 16:42:02 jeffrey Exp $''' $Id: Session.py,v 1.9 1997/12/19 17:06:20 jim Exp $'''
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals import time, OFS.SimpleItem, AccessControl.Role
import Persistence, Acquisition, Globals
from string import rfind from string import rfind
from ImageFile import ImageFile
_addForm=Globals.HTMLFile('sessionAdd', globals()) _addForm=Globals.HTMLFile('sessionAdd', globals())
def addForm(realself, self, REQUEST, **ignored): def addForm(realself, self, REQUEST, **ignored):
...@@ -40,15 +40,14 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None): ...@@ -40,15 +40,14 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None):
class Session(Persistence.Persistent, class Session(Persistence.Persistent,
AccessControl.Role.RoleManager, AccessControl.Role.RoleManager,
SimpleItem.Item, OFS.SimpleItem.Item,
Acquisition.Implicit): Acquisition.Implicit):
'''Model sessions as drop-in objects '''Model sessions as drop-in objects
''' '''
meta_type='Session' meta_type='Session'
icon='SessionIcon' icon='session'
SessionIcon=ImageFile('www/session.gif', globals())
manage_options=({'icon':'', 'label':'Join/Leave', manage_options=({'icon':'', 'label':'Join/Leave',
'action':'manage_main', 'target':'manage_main', 'action':'manage_main', 'target':'manage_main',
...@@ -125,7 +124,7 @@ class Session(Persistence.Persistent, ...@@ -125,7 +124,7 @@ class Session(Persistence.Persistent,
def nonempty(self): return Globals.SessionBase[self.cookie].nonempty() def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
...@@ -133,6 +132,9 @@ __version__='$Revision: 1.8 $'[11:-2] ...@@ -133,6 +132,9 @@ __version__='$Revision: 1.8 $'[11:-2]
############################################################################## ##############################################################################
# #
# $Log: Session.py,v $ # $Log: Session.py,v $
# Revision 1.9 1997/12/19 17:06:20 jim
# moved Sessions and Daft folders here.
#
# Revision 1.8 1997/12/18 16:42:02 jeffrey # Revision 1.8 1997/12/18 16:42:02 jeffrey
# *** empty log message *** # *** empty log message ***
# #
......
...@@ -12,11 +12,11 @@ __doc__='''A drop-in object that represents a session. ...@@ -12,11 +12,11 @@ __doc__='''A drop-in object that represents a session.
$Id: Version.py,v 1.8 1997/12/18 16:42:02 jeffrey Exp $''' $Id: Version.py,v 1.9 1997/12/19 17:06:20 jim Exp $'''
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals import time, OFS.SimpleItem, AccessControl.Role
import Persistence, Acquisition, Globals
from string import rfind from string import rfind
from ImageFile import ImageFile
_addForm=Globals.HTMLFile('sessionAdd', globals()) _addForm=Globals.HTMLFile('sessionAdd', globals())
def addForm(realself, self, REQUEST, **ignored): def addForm(realself, self, REQUEST, **ignored):
...@@ -40,15 +40,14 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None): ...@@ -40,15 +40,14 @@ def add(self, id, title, acl_type='A',acl_roles=[], REQUEST=None):
class Session(Persistence.Persistent, class Session(Persistence.Persistent,
AccessControl.Role.RoleManager, AccessControl.Role.RoleManager,
SimpleItem.Item, OFS.SimpleItem.Item,
Acquisition.Implicit): Acquisition.Implicit):
'''Model sessions as drop-in objects '''Model sessions as drop-in objects
''' '''
meta_type='Session' meta_type='Session'
icon='SessionIcon' icon='session'
SessionIcon=ImageFile('www/session.gif', globals())
manage_options=({'icon':'', 'label':'Join/Leave', manage_options=({'icon':'', 'label':'Join/Leave',
'action':'manage_main', 'target':'manage_main', 'action':'manage_main', 'target':'manage_main',
...@@ -125,7 +124,7 @@ class Session(Persistence.Persistent, ...@@ -125,7 +124,7 @@ class Session(Persistence.Persistent,
def nonempty(self): return Globals.SessionBase[self.cookie].nonempty() def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()
__version__='$Revision: 1.8 $'[11:-2] __version__='$Revision: 1.9 $'[11:-2]
...@@ -133,6 +132,9 @@ __version__='$Revision: 1.8 $'[11:-2] ...@@ -133,6 +132,9 @@ __version__='$Revision: 1.8 $'[11:-2]
############################################################################## ##############################################################################
# #
# $Log: Version.py,v $ # $Log: Version.py,v $
# Revision 1.9 1997/12/19 17:06:20 jim
# moved Sessions and Daft folders here.
#
# Revision 1.8 1997/12/18 16:42:02 jeffrey # Revision 1.8 1997/12/18 16:42:02 jeffrey
# *** empty log message *** # *** empty log message ***
# #
......
...@@ -8,12 +8,13 @@ ...@@ -8,12 +8,13 @@
# #
############################################################################## ##############################################################################
__doc__='''OFS __doc__='''OFS
$Id: __init__.py,v 1.1 1997/12/18 17:05:54 jim Exp $''' $Id: __init__.py,v 1.2 1997/12/19 17:06:22 jim Exp $'''
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
import Session, DraftFolder import Session, DraftFolder
from ImageFile import ImageFile
__.meta_types=( meta_types=(
{'name':'Draft Folder', 'action':'manage_addDraftFolderForm'}, {'name':'Draft Folder', 'action':'manage_addDraftFolderForm'},
{'name':'Session', 'action':'manage_addSessionForm'}, {'name':'Session', 'action':'manage_addSessionForm'},
{'name':'File', 'action':'manage_addFileForm'}, {'name':'File', 'action':'manage_addFileForm'},
...@@ -21,20 +22,30 @@ __.meta_types=( ...@@ -21,20 +22,30 @@ __.meta_types=(
{'name':'Folder', 'action':'manage_addFolderForm'}, {'name':'Folder', 'action':'manage_addFolderForm'},
{'name':'Document', 'action':'manage_addDocumentForm'}, {'name':'Document', 'action':'manage_addDocumentForm'},
) )
__.methods={
methods={
'manage_addSessionForm': Session.addForm, 'manage_addSessionForm': Session.addForm,
'manage_addSession': Session.add, 'manage_addSession': Session.add,
'manage_addDraftFolderForm': DraftFolder.addForm, 'manage_addDraftFolderForm': DraftFolder.addForm,
'manage_addDraftFolder': DraftFolder.add, 'manage_addDraftFolder': DraftFolder.add,
} }
misc_={
'image': ImageFile('images/Image_icon.gif', globals()),
'file': ImageFile('images/File_icon.gif', globals()),
'doc': ImageFile('images/Document_icon.gif', globals()),
'draft': ImageFile('images/DraftFolder.gif', globals()),
'sup': ImageFile('images/DraftFolderControl.gif', globals()),
'session': ImageFile('images/session.gif', globals()),
'folder': ImageFile('images/folder.gif', globals()),
}
############################################################################## ##############################################################################
# #
# $Log: __init__.py,v $ # $Log: __init__.py,v $
# Revision 1.2 1997/12/19 17:06:22 jim
# moved Sessions and Daft folders here.
#
# Revision 1.1 1997/12/18 17:05:54 jim # Revision 1.1 1997/12/18 17:05:54 jim
# *** empty log message *** # *** empty log message ***
# #
......
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