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
1cf3b637
Commit
1cf3b637
authored
Mar 09, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for true need_license before doing license check.
parent
45f57cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+9
-5
No files found.
lib/python/OFS/Application.py
View file @
1cf3b637
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.5
4 1998/03/04 17:13:16
jim Exp $'''
__version__
=
'$Revision: 1.5
4
$'
[
11
:
-
2
]
$Id: Application.py,v 1.5
5 1998/03/09 19:37:09
jim Exp $'''
__version__
=
'$Revision: 1.5
5
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
...
...
@@ -214,7 +214,8 @@ def install_products():
product
=
getattr
(
__import__
(
"Products.%s"
%
product_name
),
product_name
)
if
not
lic_check
(
product_name
):
if
(
pgetattr
(
product
,
'need_license'
,
None
,
1
)
and
not
lic_check
(
product_name
)):
continue
permissions
=
{}
...
...
@@ -338,8 +339,8 @@ def lic_check(product_name):
def
pgetattr
(
product
,
name
,
default
=
install_products
):
if
hasattr
(
product
,
name
):
return
getattr
(
product
,
name
)
def
pgetattr
(
product
,
name
,
default
=
install_products
,
__init__
=
0
):
if
not
__init__
and
hasattr
(
product
,
name
):
return
getattr
(
product
,
name
)
if
hasattr
(
product
,
'__init__'
):
product
=
product
.
__init__
if
hasattr
(
product
,
name
):
return
getattr
(
product
,
name
)
...
...
@@ -363,6 +364,9 @@ class Misc_:
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.55 1998/03/09 19:37:09 jim
# Check for true need_license before doing license check.
#
# Revision 1.54 1998/03/04 17:13:16 jim
# Added new image to mark objects that were modified in another session
# and are therefore locked.
...
...
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