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
8c08723f
Commit
8c08723f
authored
Aug 17, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fix for ProductFolder with old bobobases.
parent
7183994f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+19
-3
No files found.
lib/python/OFS/Application.py
View file @
8c08723f
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.
69 1998/08/05 21:04:04
brian Exp $'''
__version__
=
'$Revision: 1.
69
$'
[
11
:
-
2
]
$Id: Application.py,v 1.
70 1998/08/17 19:13:03
brian Exp $'''
__version__
=
'$Revision: 1.
70
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
,
App
.
Product
,
App
.
ProductRegistry
...
...
@@ -224,12 +224,25 @@ def open_bobobase():
Bobobase
[
'Application'
]
=
app
get_transaction
().
commit
()
# Backward compatibility
# The following items marked b/c are backward compatibility hacks
# which make sure that expected system objects are added to the
# bobobase. This is required because the bobobase in use may pre-
# date the introduction of certain system objects such as those
# which provide Lever support.
# b/c: Ensure that Control Panel exists.
if
not
hasattr
(
app
,
'Control_Panel'
):
cpl
=
ApplicationManager
()
cpl
.
_init
()
app
.
_setObject
(
'Control_Panel'
,
cpl
)
get_transaction
().
commit
()
# b/c: Ensure that a ProductFolder exists.
if
not
hasattr
(
app
.
Control_Panel
,
'Products'
):
app
.
Control_Panel
.
Products
=
App
.
Product
.
ProductFolder
()
get_transaction
().
commit
()
# b/c: Ensure that std err msg exists.
if
not
hasattr
(
app
,
'standard_error_message'
):
import
Document
Document
.
manage_addDocument
(
...
...
@@ -419,6 +432,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.70 1998/08/17 19:13:03 brian
# Added fix for ProductFolder with old bobobases.
#
# Revision 1.69 1998/08/05 21:04:04 brian
# Added Find
#
...
...
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