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
fc11c612
Commit
fc11c612
authored
Sep 02, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added import of TreeDisplay.TreeTag to enable tree tag.
Changed document creation call.
parent
505a61ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
lib/python/Main.py
lib/python/Main.py
+11
-10
No files found.
lib/python/Main.py
View file @
fc11c612
...
...
@@ -19,6 +19,8 @@ SimpleDB.Default=SyncDB
import
Globals
,
OFS
.
Folder
,
OFS
.
Application
,
App
.
ApplicationManager
import
OFS.Document
import
TreeDisplay.TreeTag
# Open the application database
Bobobase
=
OFS
.
Application
.
open_bobobase
()
...
...
@@ -33,27 +35,26 @@ except KeyError:
bobo_application
=
app
if
not
hasattr
(
app
,
'standard_html_footer'
):
app
.
manage_addDocument
(
'standard_html_footer'
,
''
,
''
,
None
,
"</body></html>"
)
app
.
manage_addDocument
(
'standard_html_footer'
,
'Standard Document Ending'
,
'</body></html>'
)
get_transaction
().
commit
()
if
not
hasattr
(
app
,
'standard_html_header'
):
app
.
manage_addDocument
(
'standard_html_header'
,
''
,
''
,
None
,
"""<html><head><title><!--#if title-->
app
.
manage_addDocument
(
'standard_html_header'
,
'Standard Document Beginning'
,
"""<html><head><title><!--#if title-->
<!--#var title--><!--#else title-->
<!--#var id--><!--#/if title--></title></head><body>"""
)
get_transaction
().
commit
()
acls
=
app
.
AccessControlLists
.
_data
pw
=
'123'
if
acls
.
has_key
(
'manage'
):
acls
[
'manage'
][
'superuser'
]
=
pw
else
:
acls
[
'manage'
]
=
{
'superuser'
:
pw
}
##############################################################################
# Revision Log
#
# $Log: Main.py,v $
# Revision 1.3 1997/09/02 21:22:06 jim
# Added import of TreeDisplay.TreeTag to enable tree tag.
# Changed document creation call.
#
# Revision 1.2 1997/08/28 19:32:36 jim
# Jim told Paul to do it
#
...
...
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