Skip to content

Commit 3dd743d

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent 97c159d commit 3dd743d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

roundup/cgi/templating.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,10 @@ def submit(self, label="Submit Changes"):
671671
672672
Also sneak in the lastactivity and action hidden elements.
673673
"""
674-
return self.input(type="hidden", name="@lastactivity", value=date.Date('.')) + '\n' + \
675-
self.input(type="hidden", name="@action", value="edit") + '\n' + \
676-
self.input(type="submit", name="submit", value=label)
674+
return self.input(type="hidden", name="@lastactivity",
675+
value=self.activity) + '\n' + \
676+
self.input(type="hidden", name="@action", value="edit") + '\n' + \
677+
self.input(type="submit", name="submit", value=label)
677678

678679
def journal(self, direction='descending'):
679680
''' Return a list of HTMLJournalEntry instances.

roundup/date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.67 2004-05-05 00:38:59 richard Exp $
18+
# $Id: date.py,v 1.68 2004-05-06 02:35:46 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -108,7 +108,7 @@ class Date:
108108
>>> d1-i1
109109
<Date 2003-07-01.00:00:0.000000>
110110
'''
111-
111+
112112
def __init__(self, spec='.', offset=0, add_granularity=0):
113113
"""Construct a date given a specification and a time zone offset.
114114

0 commit comments

Comments
 (0)