From: Tony Mack Date: Thu, 29 Mar 2007 20:14:46 +0000 (+0000) Subject: - make sure 'verification_expires' is converted to an int in postgres before being... X-Git-Tag: PLCAPI-4.2-0~158 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=88becb7cfae61e17307b0b54d70a187ba87e6c28;p=plcapi.git - make sure 'verification_expires' is converted to an int in postgres before being returned --- diff --git a/PLC/Persons.py b/PLC/Persons.py index 7e7578e..6da08ec 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Persons.py,v 1.34 2007/03/28 19:15:34 tmack Exp $ +# $Id: Persons.py,v 1.35 2007/03/29 13:17:09 tmack Exp $ # from types import StringTypes @@ -287,7 +287,7 @@ class Persons(Table): # postgres will return timestamps as datetime objects. # XMLPRC cannot marshal datetime so convert to int - timestamps = ['date_created', 'last_updated'] + timestamps = ['date_created', 'last_updated', 'verification_expires'] for field in fields: if field in timestamps: fields[fields.index(field)] = \