Sorry I do not understand. Do you still have an error? What is the error?

On Monday, 17 December 2012 11:55:27 UTC-6, cabildocl wrote:
>
> apologies.
> when doing tests to check the error makes that line. This is the code that 
> shows me the error
>
>
>
> El lunes, 17 de diciembre de 2012 12:08:57 UTC-3, Massimo Di Pierro 
> escribió:
>>
>> That line is definitively not commented in the web2py source code for 
>> 2.3.1 and 2.3.2
>> Code listing 
>>
>> 1837.
>> 1838.
>> 1839.
>> 1840.
>> 1841.
>> 1842.
>>
>> 1843.
>> 1844.
>> 1845.
>> 1846.
>>
>>             value = datetime.date(y, m, d)
>>         return value
>>
>>     def parse_time(self, value, field_type):
>>         if not isinstance(value, datetime.time):
>>             time_items = map(int,str(value)[:8].strip().split(':')[:3])
>>
>>             if len(time_items) == 3:
>>                 (h, mi, s) = time_items
>>             else:
>>                 (h, mi, s) = time_items + [0]
>>
>>
>> On Monday, 17 December 2012 08:48:34 UTC-6, cabildocl wrote:
>>>
>>> hi, i have a problem from to update web2py  to latest version, the error 
>>> is the next:
>>>
>>> Ticket ID 
>>>
>>> 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107
>>> <type 'exceptions.ValueError'> invalid literal for int() with base 10: 
>>> '-1 day,'
>>>
>>> Function argument list 
>>>
>>> (self=<gluon.dal.MySQLAdapter object at 0x8e030ac>, 
>>> value=datetime.timedelta(-1, 41400), field_type='time')
>>>  Code listing 
>>>
>>> 1837.
>>> 1838.
>>> 1839.
>>> 1840.
>>> 1841.
>>> 1842.
>>>
>>> 1843.
>>> 1844.
>>> 1845.
>>> 1846.
>>>
>>>             value = datetime.date(y, m, d)
>>>         return value
>>>
>>>     def parse_time(self, value, field_type):
>>>         if not isinstance(value, datetime.time):
>>>             #time_items = map(int,str(value)[:8].strip().split(':')[:3])
>>>
>>>             if len(time_items) == 3:
>>>                 (h, mi, s) = time_items
>>>             else:
>>>                 (h, mi, s) = time_items + [0]
>>>
>>>  Variables builtinlen <built-in function len>  time_items undefined
>>>
>>> this worked ok, your help please
>>>
>>>
>>>
>>>
>>>

-- 



Reply via email to