[Twisted-web] pgasync INTERVAL

Andrea Arcangeli andrea at cpushare.com
Fri Dec 16 09:19:46 MST 2005


On Fri, Dec 16, 2005 at 02:19:08PM +0100, Andrea Arcangeli wrote:
> +class INTERVAL(datetime.timedelta): 
> +	def __init__(self, *args):
> +		datetime.timedelta.__init__(self, *args)
> +
> +	@staticmethod
> +	def toDatabase(s):
> +		return "'%d days %d seconds %d microseconds'" % (s.days, s.seconds, s.microsecond)
										      ^^^^^^^^^^^s

After more testing I noticed there was a typo sorry, please add the 's'
by hand after applying the patch thanks.



More information about the Twisted-web mailing list