Commit a9afbf36 authored by Jim Fulton's avatar Jim Fulton

Factored old Management mix-in into Navigation and Tabs.

parent c7a0b301
"""Access control package"""
__version__='$Revision: 1.29 $'[11:-2]
__version__='$Revision: 1.30 $'[11:-2]
from PersistentMapping import PersistentMapping
from Persistence import Persistent
from Globals import HTMLFile, MessageDialog
from string import join,strip,split,lower
from App.Management import Management
from App.Management import Navigation, Tabs
from Acquisition import Implicit
from OFS.SimpleItem import Item
from base64 import decodestring
from ImageFile import ImageFile
import App.Undo
......@@ -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'
id ='acl_users'
......
"""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
from Dialogs import MessageDialog
from Globals import HTMLFile
from Undo import UndoSupport
class Management(UndoSupport):
"""Management support"""
class Tabs:
"""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_menu =HTMLFile('menu', globals())
manage_tabs =HTMLFile('manage_tabs', globals())
manage_copyright=HTMLFile('copyright', globals())
manage_options =()
__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]
from SingleThreadedTransaction import Persistent
import Persistence, App.Management, Acquisition, App.Undo
from Globals import HTMLFile, HTMLFile
from Globals import MessageDialog
from App.Management import Management
from Acquisition import Acquirer
from string import find,join,lower
from urllib import quote
from DocumentTemplate import html_quote
from cgi_module_publisher import type_converters
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
This class provides core behavior for collections of heterogeneous objects.
......@@ -455,6 +458,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
#
# $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
# Fixed buglet in signature of manage_delObjects.
#
......
......@@ -16,14 +16,14 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.10 1997/12/19 19:11:17 jim Exp $'''
__version__='$Revision: 1.10 $'[11:-2]
$Id: SimpleItem.py,v 1.11 1998/01/02 17:41:09 jim Exp $'''
__version__='$Revision: 1.11 $'[11:-2]
import Globals
import Globals, App.Management
from DateTime import DateTime
from CopySupport import CopySource
class Item(CopySource):
class Item(CopySource, App.Management.Tabs):
isPrincipiaFolderish=0
......@@ -37,7 +37,6 @@ class Item(CopySource):
# Default title.
title=''
manage_tabs =Globals.HTMLFile('App/manage_tabs')
manage_info =Globals.HTMLFile('App/manage_info')
manage_options=({'icon':'', 'label':'Manage',
'action':'manage_main', 'target':'manage_main',
......@@ -118,6 +117,9 @@ class Item_w__name__(Item):
##############################################################################
#
# $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
# 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