Commit a9afbf36 authored by Jim Fulton's avatar Jim Fulton

Factored old Management mix-in into Navigation and Tabs.

parent c7a0b301
"""Access control package""" """Access control package"""
__version__='$Revision: 1.29 $'[11:-2] __version__='$Revision: 1.30 $'[11:-2]
from PersistentMapping import PersistentMapping from PersistentMapping import PersistentMapping
from Persistence import Persistent from Persistence import Persistent
from Globals import HTMLFile, MessageDialog from Globals import HTMLFile, MessageDialog
from string import join,strip,split,lower from string import join,strip,split,lower
from App.Management import Management from App.Management import Navigation, Tabs
from Acquisition import Implicit from Acquisition import Implicit
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
from base64 import decodestring from base64 import decodestring
from ImageFile import ImageFile from ImageFile import ImageFile
import App.Undo
...@@ -51,7 +51,8 @@ nobody=User('Anonymous User','',('Anonymous',)) ...@@ -51,7 +51,8 @@ nobody=User('Anonymous User','',('Anonymous',))
class UserFolder(Implicit, Persistent, Management, Item): class UserFolder(Implicit, Persistent, Navigation, Tabs, Item,
App.Undo.UndoSupport):
""" """ """ """
meta_type='User Folder' meta_type='User Folder'
id ='acl_users' id ='acl_users'
......
"""Standard management interface support """Standard management interface support
$Id: Management.py,v 1.9 1997/12/19 19:08:21 jim Exp $""" $Id: Management.py,v 1.10 1998/01/02 17:39:05 jim Exp $"""
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
import sys,Globals import sys,Globals
from Dialogs import MessageDialog from Dialogs import MessageDialog
from Globals import HTMLFile from Globals import HTMLFile
from Undo import UndoSupport
class Management(UndoSupport): class Tabs:
"""Management support""" """Mix-in provides management folder tab support."""
manage_tabs =HTMLFile('manage_tabs', globals())
manage_options =()
class Navigation:
"""Basic (very) navigation UI support"""
manage =HTMLFile('manage', globals()) manage =HTMLFile('manage', globals())
manage_menu =HTMLFile('menu', globals()) manage_menu =HTMLFile('menu', globals())
manage_tabs =HTMLFile('manage_tabs', globals())
manage_copyright=HTMLFile('copyright', globals()) manage_copyright=HTMLFile('copyright', globals())
manage_options =()
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.28 1997/12/31 19:17:18 jim Exp $""" $Id: ObjectManager.py,v 1.29 1998/01/02 17:40:12 jim Exp $"""
__version__='$Revision: 1.28 $'[11:-2] __version__='$Revision: 1.29 $'[11:-2]
import Persistence, App.Management, Acquisition, App.Undo
from SingleThreadedTransaction import Persistent
from Globals import HTMLFile, HTMLFile from Globals import HTMLFile, HTMLFile
from Globals import MessageDialog from Globals import MessageDialog
from App.Management import Management
from Acquisition import Acquirer
from string import find,join,lower from string import find,join,lower
from urllib import quote from urllib import quote
from DocumentTemplate import html_quote from DocumentTemplate import html_quote
from cgi_module_publisher import type_converters from cgi_module_publisher import type_converters
from DateTime import DateTime from DateTime import DateTime
class ObjectManager(Acquirer,Management,Persistent): class ObjectManager(
App.Management.Navigation,
App.Management.Tabs,
Acquisition.Explicit,
Persistence.Persistent,
App.Undo.UndoSupport,
):
"""Generic object manager """Generic object manager
This class provides core behavior for collections of heterogeneous objects. This class provides core behavior for collections of heterogeneous objects.
...@@ -455,6 +458,9 @@ class ObjectManager(Acquirer,Management,Persistent): ...@@ -455,6 +458,9 @@ class ObjectManager(Acquirer,Management,Persistent):
############################################################################## ##############################################################################
# #
# $Log: ObjectManager.py,v $ # $Log: ObjectManager.py,v $
# Revision 1.29 1998/01/02 17:40:12 jim
# Factored old Management mix-in into Navigation and Tabs.
#
# Revision 1.28 1997/12/31 19:17:18 jim # Revision 1.28 1997/12/31 19:17:18 jim
# Fixed buglet in signature of manage_delObjects. # Fixed buglet in signature of manage_delObjects.
# #
......
...@@ -16,14 +16,14 @@ Aqueduct database adapters, etc. ...@@ -16,14 +16,14 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new This module can also be used as a simple template for implementing new
item types. item types.
$Id: SimpleItem.py,v 1.10 1997/12/19 19:11:17 jim Exp $''' $Id: SimpleItem.py,v 1.11 1998/01/02 17:41:09 jim Exp $'''
__version__='$Revision: 1.10 $'[11:-2] __version__='$Revision: 1.11 $'[11:-2]
import Globals import Globals, App.Management
from DateTime import DateTime from DateTime import DateTime
from CopySupport import CopySource from CopySupport import CopySource
class Item(CopySource): class Item(CopySource, App.Management.Tabs):
isPrincipiaFolderish=0 isPrincipiaFolderish=0
...@@ -37,7 +37,6 @@ class Item(CopySource): ...@@ -37,7 +37,6 @@ class Item(CopySource):
# Default title. # Default title.
title='' title=''
manage_tabs =Globals.HTMLFile('App/manage_tabs')
manage_info =Globals.HTMLFile('App/manage_info') manage_info =Globals.HTMLFile('App/manage_info')
manage_options=({'icon':'', 'label':'Manage', manage_options=({'icon':'', 'label':'Manage',
'action':'manage_main', 'target':'manage_main', 'action':'manage_main', 'target':'manage_main',
...@@ -118,6 +117,9 @@ class Item_w__name__(Item): ...@@ -118,6 +117,9 @@ class Item_w__name__(Item):
############################################################################## ##############################################################################
# #
# $Log: SimpleItem.py,v $ # $Log: SimpleItem.py,v $
# Revision 1.11 1998/01/02 17:41:09 jim
# Factored old Management mix-in into Navigation and Tabs.
#
# Revision 1.10 1997/12/19 19:11:17 jim # Revision 1.10 1997/12/19 19:11:17 jim
# updated icon management strategy # updated icon management strategy
# #
......
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