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
801abbf3
Commit
801abbf3
authored
Feb 17, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
dc6a5a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+5
-5
No files found.
lib/python/OFS/Application.py
View file @
801abbf3
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
__doc__
=
'''Application support
$Id: Application.py,v 1.5
0 1998/02/14 21:24:31
brian Exp $'''
$Id: Application.py,v 1.5
1 1998/02/17 14:23:50
brian Exp $'''
__version__
=
'$Revision: 1.5
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
import
Globals
,
Folder
,
os
,
regex
,
sys
...
@@ -295,7 +295,6 @@ def lic_check(product_name):
...
@@ -295,7 +295,6 @@ def lic_check(product_name):
product_dir
=
path_join
(
SOFTWARE_HOME
,
'lib/python/Products'
)
product_dir
=
path_join
(
SOFTWARE_HOME
,
'lib/python/Products'
)
package_dir
=
path_join
(
product_dir
,
product_name
)
package_dir
=
path_join
(
product_dir
,
product_name
)
bobobase
=
Globals
.
Bobobase
bobobase
=
Globals
.
Bobobase
safe
=
bobobase
.
has_key
(
'Application'
)
try
:
f
=
open
(
path_join
(
package_dir
,
'%s.lic'
%
product_name
),
'rb'
)
try
:
f
=
open
(
path_join
(
package_dir
,
'%s.lic'
%
product_name
),
'rb'
)
except
:
except
:
try
:
try
:
...
@@ -328,12 +327,10 @@ def lic_check(product_name):
...
@@ -328,12 +327,10 @@ def lic_check(product_name):
else
:
else
:
if
not
bobobase
.
has_key
(
'_t_'
):
if
not
bobobase
.
has_key
(
'_t_'
):
bobobase
[
'_t_'
]
=
{}
bobobase
[
'_t_'
]
=
{}
if
safe
:
get_transaction
().
commit
()
t
=
bobobase
[
'_t_'
]
t
=
bobobase
[
'_t_'
]
if
not
t
.
has_key
(
product_name
):
if
not
t
.
has_key
(
product_name
):
t
[
product_name
]
=
time
.
time
()
t
[
product_name
]
=
time
.
time
()
bobobase
[
'_t_'
]
=
t
bobobase
[
'_t_'
]
=
t
if
safe
:
get_transaction
().
commit
()
if
(
t
[
product_name
]
+
(
86400.0
*
val
))
<
time
.
time
():
if
(
t
[
product_name
]
+
(
86400.0
*
val
))
<
time
.
time
():
product
=
getattr
(
__import__
(
"Products.%s"
%
product_name
),
product
=
getattr
(
__import__
(
"Products.%s"
%
product_name
),
product_name
)
product_name
)
...
@@ -377,6 +374,9 @@ class Misc_:
...
@@ -377,6 +374,9 @@ class Misc_:
##############################################################################
##############################################################################
#
#
# $Log: Application.py,v $
# $Log: Application.py,v $
# Revision 1.51 1998/02/17 14:23:50 brian
# *** empty log message ***
#
# Revision 1.50 1998/02/14 21:24:31 brian
# Revision 1.50 1998/02/14 21:24:31 brian
# Fixed the licensing code to not call get_transaction().commit() during the
# Fixed the licensing code to not call get_transaction().commit() during the
# initial request that creates a new bobobase.
# initial request that creates a new bobobase.
...
...
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