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
6e6e3eef
Commit
6e6e3eef
authored
Aug 10, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix for product initialization from 2.2 branch
parent
cd556920
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
45 deletions
+48
-45
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+48
-45
No files found.
lib/python/OFS/Application.py
View file @
6e6e3eef
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
__doc__
=
'''Application support
__doc__
=
'''Application support
$Id: Application.py,v 1.13
1 2000/08/02 17:31:54
brian Exp $'''
$Id: Application.py,v 1.13
2 2000/08/10 14:22:48
brian Exp $'''
__version__
=
'$Revision: 1.13
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.13
2
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
time
,
traceback
,
os
,
string
,
Products
import
time
,
traceback
,
os
,
string
,
Products
...
@@ -485,7 +485,10 @@ def install_products(app):
...
@@ -485,7 +485,10 @@ def install_products(app):
initmethod
=
pgetattr
(
product
,
'initialize'
,
None
)
initmethod
=
pgetattr
(
product
,
'initialize'
,
None
)
if
initmethod
is
not
None
:
if
initmethod
is
not
None
:
initmethod
(
context
)
initmethod
(
context
)
else
:
# Support old-style product metadata. Older products may
# define attributes to name their permissions, meta_types,
# constructors, etc.
permissions
=
{}
permissions
=
{}
new_permissions
=
{}
new_permissions
=
{}
for
p
in
pgetattr
(
product
,
'__ac_permissions__'
,
()):
for
p
in
pgetattr
(
product
,
'__ac_permissions__'
,
()):
...
...
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