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
91c1ea53
Commit
91c1ea53
authored
Apr 08, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coverage for App.ApplicationManager.ApplicationManager.
parent
4e8eb1c6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
264 additions
and
20 deletions
+264
-20
src/App/ApplicationManager.py
src/App/ApplicationManager.py
+9
-4
src/App/tests/test_ApplicationManager.py
src/App/tests/test_ApplicationManager.py
+255
-16
No files found.
src/App/ApplicationManager.py
View file @
91c1ea53
...
...
@@ -318,8 +318,10 @@ class ApplicationManager(Folder,CacheManager):
"""Return to the main management screen"""
raise
Redirect
,
URL2
+
'/manage'
def
process_time
(
self
):
s
=
int
(
time
.
time
())
-
self
.
process_start
def
process_time
(
self
,
_when
=
None
):
if
_when
is
None
:
_when
=
time
.
time
()
s
=
int
(
_when
)
-
self
.
process_start
d
=
int
(
s
/
86400
)
s
=
s
-
(
d
*
86400
)
h
=
int
(
s
/
3600
)
...
...
@@ -378,10 +380,13 @@ class ApplicationManager(Folder,CacheManager):
"""
@
requestmethod
(
'POST'
)
def
manage_pack
(
self
,
days
=
0
,
REQUEST
=
None
):
def
manage_pack
(
self
,
days
=
0
,
REQUEST
=
None
,
_when
=
None
):
"""Pack the database"""
t
=
time
.
time
()
-
days
*
86400
if
_when
is
None
:
_when
=
time
.
time
()
t
=
_when
-
(
days
*
86400
)
db
=
self
.
_p_jar
.
db
()
t
=
db
.
pack
(
t
)
...
...
src/App/tests/test_ApplicationManager.py
View file @
91c1ea53
This diff is collapsed.
Click to expand it.
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