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
13a53d25
Commit
13a53d25
authored
May 12, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the guts of version_text a stand-alond function so that ZServer
can use it and not import Main.
parent
394468f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+8
-4
No files found.
lib/python/App/ApplicationManager.py
View file @
13a53d25
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
string
,
Globals
,
Acquisition
...
...
@@ -114,6 +114,12 @@ class DatabaseManager(Fake, SimpleItem.Item, Acquisition.Implicit):
)
def
version_txt
(
self
):
try
:
return
open
(
os
.
path
.
join
(
SOFTWARE_HOME
,
'version.txt'
)).
read
()
except
:
return
'(unreleased version)'
return
self
.
_v_version_txt
class
ApplicationManager
(
Folder
,
CacheManager
):
"""System management"""
...
...
@@ -126,9 +132,7 @@ class ApplicationManager(Folder,CacheManager):
def
version_txt
(
self
):
if
not
hasattr
(
self
,
'_v_version_txt'
):
try
:
self
.
_v_version_txt
=
open
(
os
.
path
.
join
(
SOFTWARE_HOME
,
'version.txt'
)).
read
()
except
:
self
.
_v_version_txt
=
'(unreleased version)'
self
.
_v_version_txt
=
version_txt
()
return
self
.
_v_version_txt
...
...
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