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
5ca75ac9
Commit
5ca75ac9
authored
Dec 03, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the way __import__ is called.
parent
117a4493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+9
-3
No files found.
lib/python/OFS/Application.py
View file @
5ca75ac9
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.7
6 1998/12/03 15:29:20
jim Exp $'''
__version__
=
'$Revision: 1.7
6
$'
[
11
:
-
2
]
$Id: Application.py,v 1.7
7 1998/12/03 20:08:42
jim Exp $'''
__version__
=
'$Revision: 1.7
7
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
,
App
.
Product
,
App
.
ProductRegistry
...
...
@@ -285,6 +285,8 @@ def install_products(app):
product_names
=
os
.
listdir
(
product_dir
)
product_names
.
sort
()
global_dict
=
globals
()
silly
=
(
'__doc__'
,)
for
product_name
in
product_names
:
package_dir
=
path_join
(
product_dir
,
product_name
)
...
...
@@ -293,7 +295,8 @@ def install_products(app):
if
not
exists
(
path_join
(
package_dir
,
'__init__.pyc'
)):
continue
product
=
getattr
(
__import__
(
"Products.%s"
%
product_name
),
product_name
)
product
=
__import__
(
"Products.%s"
%
product_name
,
global_dict
,
global_dict
,
silly
)
permissions
=
{}
new_permissions
=
{}
...
...
@@ -389,6 +392,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.77 1998/12/03 20:08:42 jim
# Fixed the way __import__ is called.
#
# Revision 1.76 1998/12/03 15:29:20 jim
# rearranged SOFTWARE_HOME and INSTANCE_HOME
#
...
...
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