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
1b0fda76
Commit
1b0fda76
authored
Sep 19, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nicified Application
parent
55029eb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
+31
-10
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+27
-6
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+4
-4
No files found.
lib/python/OFS/Application.py
View file @
1b0fda76
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.1
0 1997/09/10 18:42:35 jim
Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: Application.py,v 1.1
1 1997/09/19 18:22:29 brian
Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
regex
...
...
@@ -22,7 +22,7 @@ from AccessControl.User import UserFolder
class
Application
(
Folder
.
Folder
):
web__form__method
=
'GET'
title
=
'
Site Studio
'
title
=
'
Principia
'
id
=
title
manage_options
=
(
...
...
@@ -34,10 +34,28 @@ class Application(Folder.Folder):
'action'
:
'manage_rolesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'OFS/ControlPanel_icon.gif'
,
'label'
:
'Control Panel'
,
'action'
:
'app/manage'
,
'target'
:
'_top'
},
{
'icon'
:
'OFS/Help_icon.gif'
,
'label'
:
'Help'
,
'action'
:
'manage_help'
,
'target'
:
'_new'
},
#
{'icon':'OFS/Help_icon.gif', 'label':'Help',
#
'action':'manage_help', 'target':'_new'},
)
_reserved_names
=
(
'standard_html_header'
,
'standard_html_footer'
,
'acl_users'
)
__allow_groups__
=
UserFolder
()
def
_init
(
self
):
self
.
manage_addDocument
(
'standard_html_header'
,
'Standard Html Header'
,
'<HTML><HEAD><TITLE><!--#var title_or_id-->'
\
'</TITLE></HEAD><BODY>'
)
self
.
manage_addDocument
(
'standard_html_footer'
,
'Standard Html Footer'
,
'</BODY></HTML>'
)
self
.
_setObject
(
'acl_users'
,
self
.
__allow_groups__
)
def
folderClass
(
self
):
return
Folder
.
Folder
def
__class_init__
(
self
):
pass
...
...
@@ -47,7 +65,7 @@ class Application(Folder.Folder):
if
find
(
destination
,
'//'
)
>=
0
:
raise
'Redirect'
,
destination
raise
'Redirect'
,
(
"%s/%s"
%
(
PARENT_URL
,
destination
))
__allow_groups__
=
UserFolder
()
def
open_bobobase
():
...
...
@@ -145,6 +163,9 @@ if __name__ == "__main__": main()
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.11 1997/09/19 18:22:29 brian
# Nicified Application
#
# Revision 1.10 1997/09/10 18:42:35 jim
# Added SimpleItem mix-in and new title/id methods.
#
...
...
lib/python/OFS/Folder.py
View file @
1b0fda76
"""Folder object
$Id: Folder.py,v 1.
9 1997/09/10 18:42:36 jim
Exp $"""
$Id: Folder.py,v 1.
10 1997/09/19 18:22:30 brian
Exp $"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -79,8 +79,8 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
'action'
:
'manage_propertiesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'AccessControl/AccessControl_icon.gif'
,
'label'
:
'Access Control'
,
'action'
:
'manage_rolesForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'OFS/Help_icon.gif'
,
'label'
:
'Help'
,
'action'
:
'manage_help'
,
'target'
:
'_new'
},
#
{'icon':'OFS/Help_icon.gif', 'label':'Help',
#
'action':'manage_help', 'target':'_new'},
)
...
...
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