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
b163021f
Commit
b163021f
authored
Oct 12, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge fix from branch
parent
42fe5621
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+9
-4
No files found.
lib/python/OFS/Application.py
View file @
b163021f
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Application support
$Id: Application.py,v 1.15
7 2001/08/09 20:41:00 chrism
Exp $'''
__version__
=
'$Revision: 1.15
7
$'
[
11
:
-
2
]
$Id: Application.py,v 1.15
8 2001/10/12 13:39:11 evan
Exp $'''
__version__
=
'$Revision: 1.15
8
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
sys
,
App
.
Product
,
App
.
ProductRegistry
,
misc_
import
time
,
traceback
,
os
,
string
,
Products
...
...
@@ -531,8 +531,13 @@ def import_products():
products
=
get_products
()
for
priority
,
product_name
,
index
,
product_dir
in
products
:
if
done
.
has_key
(
product_name
):
continue
done
[
product_name
]
=
1
if
done
.
has_key
(
product_name
):
LOG
(
'OFS.Application'
,
WARNING
,
'Duplicate Product name'
,
'After loading Product %s from %s,
\
n
'
'I skipped the one in %s.
\
n
'
%
(
`product_name`
,
`done[product_name]`
,
`product_dir`
)
)
continue
done
[
product_name
]
=
product_dir
import_product
(
product_dir
,
product_name
)
def
import_product
(
product_dir
,
product_name
,
raise_exc
=
0
,
log_exc
=
1
):
...
...
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