← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 591318] Re: sync ics calendar export data

 

** Changed in: openobject-addons
       Status: New => Triaged

-- 
sync ics calendar export data
https://bugs.launchpad.net/bugs/591318
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Triaged

Bug description:
Hello,

In last stable revision (no 2751), we met an error when we want to export data with document_ics.

Traceback :
[2010-06-08 17:21:10,682] ERROR:FTP:[51]:     return self.behavior.transformFromNative(self)
[2010-06-08 17:21:10,682] ERROR:FTP:[52]:   File "/usr/lib/pymodules/python2.6/vobject/icalendar.py", line 658, in transformFromNative
[2010-06-08 17:21:10,682] ERROR:FTP:[53]:     tzid = TimezoneComponent.registerTzinfo(obj.value.tzinfo)
[2010-06-08 17:21:10,682] ERROR:FTP:[54]: NativeError: "In transformFromNative, unhandled exception: <type 'exceptions.AttributeError'>: tzinfo"

We've tried with an oldest version (no 2408) and it runs fine.

The diff is in the file 'document_ics/document.py' :
line around 113
rev 2408  return datetime.datetime.strptime(idate, '%Y-%m-%d %H:%M:%S')
rev 2751  return mx.DateTime.strptime(idate, '%Y-%m-%d %H:%M:%S')

Thanks