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
d8b33db7
Commit
d8b33db7
authored
Aug 27, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added pack. Rearranged menu to take out pack and undo and add
navigation to application.
parent
2e1f784e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+12
-8
No files found.
lib/python/App/ApplicationManager.py
View file @
d8b33db7
__doc__
=
"""Application management component"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
...
...
@@ -16,19 +16,18 @@ class ApplicationManager(Acquirer,Management):
manage_undoForm
=
HTMLFile
(
'App/undo'
)
manage_options
=
(
{
'icon'
:
'App/arrow.jpg'
,
'label'
:
'Application Manager'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
},
{
'icon'
:
'App/arrow.jpg'
,
'label'
:
'Compact Database'
,
'action'
:
'manage_packForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'App/arrow.jpg'
,
'label'
:
'Undo Changes'
,
'action'
:
'manage_undoForm'
,
'target'
:
'manage_main'
},
{
'icon'
:
'App/arrow.jpg'
,
'label'
:
'Application'
,
'action'
:
'manage_app'
,
'target'
:
'_top'
},
)
title
=
'Application Manager'
name
=
'application manager'
process_id
=
os
.
getpid
()
process_start
=
int
(
time
.
time
())
def
manage_app
(
self
,
URL2
):
"""Return to the main management screen"""
raise
'Redirect'
,
URL2
+
'/manage'
def
parentObject
(
self
):
try
:
return
(
self
.
aq_parent
,)
except
:
return
()
...
...
@@ -58,6 +57,11 @@ class ApplicationManager(Acquirer,Management):
db
.
file
.
close
()
sys
.
exit
(
0
)
def
manage_pack
(
self
,
days
=
0
,
REQUEST
):
"""Pack the database"""
Globals
.
Bobobase
.
_jar
.
db
.
pack
(
time
.
time
()
-
days
*
86400
,
1
)
return
self
.
manage_main
(
self
,
REQUEST
)
def
revert_points
(
self
):
return
()
def
manage_addProduct
(
self
,
product
):
...
...
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