← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 591318] Re: sync ics calendar export data

 

** Changed in: openobject-addons
   Importance: Undecided => Medium

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

** Changed in: openobject-addons
    Milestone: None => 5.0.16

** Changed in: openobject-addons
     Assignee: (unassigned) => Anup (OpenERP) (ach-openerp)

** Tags added: maintenance

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

Title:
  sync ics calendar export data

Status in OpenObject Addons Modules:
  Confirmed

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