Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a9afbf36
Commit
a9afbf36
authored
Jan 02, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factored old Management mix-in into Navigation and Tabs.
parent
c7a0b301
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
23 deletions
+34
-23
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+5
-4
lib/python/App/Management.py
lib/python/App/Management.py
+9
-7
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+13
-7
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+7
-5
No files found.
lib/python/AccessControl/User.py
View file @
a9afbf36
"""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'
...
...
lib/python/App/Management.py
View file @
a9afbf36
"""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
=
()
lib/python/OFS/ObjectManager.py
View file @
a9afbf36
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.2
8 1997/12/31 19:17:18
jim Exp $"""
$Id: ObjectManager.py,v 1.2
9 1998/01/02 17:40:12
jim Exp $"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
9
$'
[
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.
#
#
...
...
lib/python/OFS/SimpleItem.py
View file @
a9afbf36
...
@@ -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.1
0 1997/12/19 19:11:17
jim Exp $'''
$Id: SimpleItem.py,v 1.1
1 1998/01/02 17:41:09
jim Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
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
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment