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
fe7aa149
Commit
fe7aa149
authored
Aug 18, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made changes to manage_options to support std icons
parent
7eff7b0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+5
-5
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+9
-6
No files found.
lib/python/OFS/Folder.py
View file @
fe7aa149
"""Folder object
"""Folder object
$Id: Folder.py,v 1.
5 1997/08/08 23:03:21 jim
Exp $"""
$Id: Folder.py,v 1.
6 1997/08/18 15:14:53 brian
Exp $"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
...
@@ -74,11 +74,11 @@ class Folder(ObjectManager,DocumentHandler,ImageHandler,FolderHandler):
...
@@ -74,11 +74,11 @@ class Folder(ObjectManager,DocumentHandler,ImageHandler,FolderHandler):
manage_options
=
(
manage_options
=
(
{
'icon'
:
icon
,
'label'
:
'Contents'
,
{
'icon'
:
icon
,
'label'
:
'Contents'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
},
'action'
:
'manage_main'
,
'target'
:
'manage_main'
},
{
'icon'
:
'OFS/
properties.jpg
'
,
'label'
:
'Properties'
,
{
'icon'
:
'OFS/
Properties_icon.gif
'
,
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'AccessControl/AccessControl_icon.gif'
,
'label'
:
'Access Control'
,
{
'icon'
:
'AccessControl/AccessControl_icon.gif'
,
'label'
:
'Access Control'
,
'action'
:
'AccessControlLists/manage_main'
,
'target'
:
'manage_main'
},
'action'
:
'AccessControlLists/manage_main'
,
'target'
:
'manage_main'
},
{
'icon'
:
'
App/help.jpg
'
,
'label'
:
'Help'
,
{
'icon'
:
'
OFS/Help_icon.gif
'
,
'label'
:
'Help'
,
'action'
:
'manage_help'
,
'target'
:
'_new'
},
'action'
:
'manage_help'
,
'target'
:
'_new'
},
)
)
...
...
lib/python/OFS/ObjectManager.py
View file @
fe7aa149
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.
6 1997/08/13 19:09:05 jim
Exp $"""
$Id: ObjectManager.py,v 1.
7 1997/08/18 15:14:54 brian
Exp $"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
from
SingleThreadedTransaction
import
Persistent
...
@@ -25,7 +25,7 @@ class ObjectManager(Acquirer,Management,Persistent):
...
@@ -25,7 +25,7 @@ class ObjectManager(Acquirer,Management,Persistent):
meta_types
=
dynamic_meta_types
=
()
meta_types
=
dynamic_meta_types
=
()
id
=
'default'
id
=
'default'
title
=
''
title
=
''
icon
=
'
dir.jpg
'
icon
=
'
OFS/Folder_icon.gif
'
_objects
=
()
_objects
=
()
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
...
@@ -33,11 +33,11 @@ class ObjectManager(Acquirer,Management,Persistent):
...
@@ -33,11 +33,11 @@ class ObjectManager(Acquirer,Management,Persistent):
manage_propertiesForm
=
HTMLFile
(
'OFS/properties'
)
manage_propertiesForm
=
HTMLFile
(
'OFS/properties'
)
manage_options
=
(
manage_options
=
(
{
'icon'
:
'OFS/templates.jpg'
,
'label'
:
'Objects'
,
{
'icon'
:
icon
,
'label'
:
'Objects'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
},
'action'
:
'manage_main'
,
'target'
:
'manage_main'
},
{
'icon'
:
'OFS/
properties.jpg
'
,
'label'
:
'Properties'
,
{
'icon'
:
'OFS/
Properties_icon.gif
'
,
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'
APP/help.jpg
'
,
'label'
:
'Help'
,
{
'icon'
:
'
OFS/Help_icon.gif
'
,
'label'
:
'Help'
,
'action'
:
'manage_help'
,
'target'
:
'_new'
},
'action'
:
'manage_help'
,
'target'
:
'_new'
},
)
)
...
@@ -252,6 +252,9 @@ class ObjectManager(Acquirer,Management,Persistent):
...
@@ -252,6 +252,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
##############################################################################
#
#
# $Log: ObjectManager.py,v $
# $Log: ObjectManager.py,v $
# Revision 1.7 1997/08/18 15:14:54 brian
# Made changes to manage_options to support std icons
#
# Revision 1.6 1997/08/13 19:09:05 jim
# Revision 1.6 1997/08/13 19:09:05 jim
# Got rid of ManageHTMLFile
# Got rid of ManageHTMLFile
#
#
...
...
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