Skip to content

Commit dde2b4b

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent cb0ebb5 commit dde2b4b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Fixed:
1818
- fix lookup of REMOTE_USER (sf bug 1002923)
1919
- new Interval props weren't created properly in rdbms
2020
- date.Interval() now accepts an Interval as a spec (sf bug 1041266)
21+
- handle deleted properties in RDBMS history
22+
- apply timezone in correct direction in user input (sf bug 1013097)
2123

2224

2325
2004-07-21 0.7.6

roundup/backends/rdbms_common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.98.2.21 2004-10-08 00:21:31 richard Exp $
1+
# $Id: rdbms_common.py,v 1.98.2.22 2004-10-08 00:57:22 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1131,7 +1131,10 @@ def getjournal(self, classname, nodeid):
11311131
for param, value in params.items():
11321132
if not value:
11331133
continue
1134-
property = properties[param]
1134+
property = properties.get(param, None)
1135+
if property is None:
1136+
# deleted property
1137+
continue
11351138
cvt = self.sql_to_hyperdb_value[property.__class__]
11361139
if isinstance(property, Password):
11371140
params[param] = cvt(value)

roundup/hyperdb.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: hyperdb.py,v 1.97.2.4 2004-07-20 06:00:07 richard Exp $
18+
# $Id: hyperdb.py,v 1.97.2.5 2004-10-08 00:57:22 richard Exp $
1919

2020
"""Hyperdatabase implementation, especially field types.
2121
"""
@@ -671,7 +671,7 @@ def rawToHyperdb(db, klass, itemid, propname, value,
671671
elif isinstance(proptype, Date):
672672
try:
673673
tz = db.getUserTimezone()
674-
value = date.Date(value).local(tz)
674+
value = date.Date(value).local(-tz)
675675
except ValueError, message:
676676
raise HyperdbValueError, 'property %s: %r is an invalid '\
677677
'date (%s)'%(propname, value, message)

0 commit comments

Comments
 (0)