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
d96afcc0
Commit
d96afcc0
authored
Oct 10, 2001
by
Steve Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged fix to make arguments to mktime a tuple, rather than nine arguments.
parent
4c6e6ae6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ZServer/medusa/logger.py
ZServer/medusa/logger.py
+3
-3
lib/python/ZServer/medusa/logger.py
lib/python/ZServer/medusa/logger.py
+3
-3
No files found.
ZServer/medusa/logger.py
View file @
d96afcc0
...
@@ -103,11 +103,11 @@ class rotating_file_logger (file_logger):
...
@@ -103,11 +103,11 @@ class rotating_file_logger (file_logger):
def
next_backup
(
self
,
freq
):
def
next_backup
(
self
,
freq
):
(
yr
,
mo
,
day
,
hr
,
min
,
sec
,
wd
,
jday
,
dst
)
=
time
.
localtime
(
time
.
time
())
(
yr
,
mo
,
day
,
hr
,
min
,
sec
,
wd
,
jday
,
dst
)
=
time
.
localtime
(
time
.
time
())
if
freq
==
'daily'
:
if
freq
==
'daily'
:
return
time
.
mktime
(
yr
,
mo
,
day
+
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
return
time
.
mktime
(
(
yr
,
mo
,
day
+
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
elif
freq
==
'weekly'
:
elif
freq
==
'weekly'
:
return
time
.
mktime
(
yr
,
mo
,
day
-
wd
+
7
,
0
,
0
,
0
,
0
,
0
,
-
1
)
# wd(monday)==0
return
time
.
mktime
(
(
yr
,
mo
,
day
-
wd
+
7
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
# wd(monday)==0
elif
freq
==
'monthly'
:
elif
freq
==
'monthly'
:
return
time
.
mktime
(
yr
,
mo
+
1
,
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
return
time
.
mktime
(
(
yr
,
mo
+
1
,
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
else
:
else
:
return
None
# not a date-based backup
return
None
# not a date-based backup
...
...
lib/python/ZServer/medusa/logger.py
View file @
d96afcc0
...
@@ -103,11 +103,11 @@ class rotating_file_logger (file_logger):
...
@@ -103,11 +103,11 @@ class rotating_file_logger (file_logger):
def
next_backup
(
self
,
freq
):
def
next_backup
(
self
,
freq
):
(
yr
,
mo
,
day
,
hr
,
min
,
sec
,
wd
,
jday
,
dst
)
=
time
.
localtime
(
time
.
time
())
(
yr
,
mo
,
day
,
hr
,
min
,
sec
,
wd
,
jday
,
dst
)
=
time
.
localtime
(
time
.
time
())
if
freq
==
'daily'
:
if
freq
==
'daily'
:
return
time
.
mktime
(
yr
,
mo
,
day
+
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
return
time
.
mktime
(
(
yr
,
mo
,
day
+
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
elif
freq
==
'weekly'
:
elif
freq
==
'weekly'
:
return
time
.
mktime
(
yr
,
mo
,
day
-
wd
+
7
,
0
,
0
,
0
,
0
,
0
,
-
1
)
# wd(monday)==0
return
time
.
mktime
(
(
yr
,
mo
,
day
-
wd
+
7
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
# wd(monday)==0
elif
freq
==
'monthly'
:
elif
freq
==
'monthly'
:
return
time
.
mktime
(
yr
,
mo
+
1
,
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
return
time
.
mktime
(
(
yr
,
mo
+
1
,
1
,
0
,
0
,
0
,
0
,
0
,
-
1
)
)
else
:
else
:
return
None
# not a date-based backup
return
None
# not a date-based backup
...
...
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