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
82e20b72
Commit
82e20b72
authored
Jan 29, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up eval support
parent
d3cb4bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+12
-7
No files found.
lib/python/OFS/Application.py
View file @
82e20b72
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.4
2 1998/01/28 23:39:02
brian Exp $'''
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
$Id: Application.py,v 1.4
3 1998/01/29 20:52:20
brian Exp $'''
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
...
...
@@ -205,9 +205,8 @@ def install_products():
product
=
getattr
(
__import__
(
"Products.%s"
%
product_name
),
product_name
)
if
product_name
not
in
[
'OFSP'
,
'MailHost'
]:
if
not
lic_check
(
product_name
):
continue
if
not
lic_check
(
product_name
):
continue
for
meta_type
in
pgetattr
(
product
,
'meta_types'
,
()):
if
product_name
==
'OFSP'
:
meta_types
.
insert
(
0
,
meta_type
)
...
...
@@ -311,9 +310,12 @@ def lic_check(product_name):
p
=
rfind
(
s
,
'.'
)
m
=
'Products.%s.%s'
%
(
product_name
,
s
[:
p
])
c
=
s
[
p
+
1
:]
__import__
(
m
)
try
:
__import__
(
m
)
except
:
m
=
s
[:
p
]
__import__
(
m
)
setattr
(
sys
.
modules
[
m
],
c
,
Expired
)
return
0
return
0
...
...
@@ -343,6 +345,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.43 1998/01/29 20:52:20 brian
# Fixed up eval support
#
# Revision 1.42 1998/01/28 23:39:02 brian
# Added licensing logic
#
...
...
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