From bd5e2f2661e25f165c37071b05c617d9d3363842 Mon Sep 17 00:00:00 2001 From: Jigar Amin Date: Wed, 8 Jun 2011 10:14:47 +0530 Subject: [PATCH] [FIX] Code refector bzr revid: jam@tinyerp.com-20110608044447-hkg95ex70kqbr3hg --- addons/import_google/wizard/import_google.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/import_google/wizard/import_google.py b/addons/import_google/wizard/import_google.py index 7c249a2..cbad8f1 100644 --- a/addons/import_google/wizard/import_google.py +++ b/addons/import_google/wizard/import_google.py @@ -38,7 +38,7 @@ from import_base.mapper import * class import_contact(import_framework): - gd_calendar_client = False + gd_client = False calendars = False DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S" TABLE_CONTACT = 'contact' @@ -46,8 +46,8 @@ class import_contact(import_framework): def initialize(self): if 'events' in self.context and self.context.get('events'): - self.gd_calendar_client = gdata.calendar.service.CalendarService() - self.gd_calendar_client.ClientLogin(self.context.get('user', False),self.context.get('password', False)) + self.gd_client = gdata.calendar.service.CalendarService() + self.gd_client.ClientLogin(self.context.get('user', False),self.context.get('password', False)) self.calendars = self.context.get('calendars') def get_mapping(self): @@ -177,7 +177,7 @@ class import_contact(import_framework): events_query = gdata.calendar.service.CalendarEventQuery(user=urllib.unquote(cal.split('/')[~0])) events_query.start_index = 1 events_query.max_results = 1000 - event_feed = self.gd_calendar_client.GetCalendarEventFeed(events_query.ToUri()) + event_feed = self.gd_client.GetCalendarEventFeed(events_query.ToUri()) for feed in event_feed.entry: event = { 'recurrency': "0", -- 1.7.10.4