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
7183994f
Commit
7183994f
authored
Aug 17, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fix for ProductFolder with old bobobases
parent
3b64fa0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+17
-6
No files found.
lib/python/App/ApplicationManager.py
View file @
7183994f
__doc__
=
"""System management components"""
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
...
@@ -69,11 +69,22 @@ class ApplicationManager(Folder,CacheManager):
...
@@ -69,11 +69,22 @@ class ApplicationManager(Folder,CacheManager):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
Products
=
ProductFolder
()
self
.
Products
=
ProductFolder
()
def
__setstate__
(
self
,
v
):
ApplicationManager
.
inheritedAttribute
(
'__setstate__'
)(
self
,
v
)
# Note by brian:
if
not
hasattr
(
self
,
'Products'
):
#
self
.
Products
=
ProductFolder
()
# This __setstate__ does not seem to work - it creates a new ProductFolder
# and adds it to the CP instance if needed, but the resulting PF does not
# seem to be persistent ;( Rather than spend much time figuring out why,
# I just added a check in Application.open_bobobase to create the PF if
# it is needed (this is where several other b/c checks are done anyway.)
#
#
# def __setstate__(self, v):
# ApplicationManager.inheritedAttribute('__setstate__')(self, v)
# if not hasattr(self, 'Products'):
# self.Products=ProductFolder()
def
_canCopy
(
self
,
op
=
0
):
def
_canCopy
(
self
,
op
=
0
):
return
0
return
0
...
...
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