Thread
:
[Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
View Single Post
surlykke
2010-03-11 , 20:25
Posts: 5 | Thanked: 1 time | Joined on Mar 2010
#
238
First of all: Thanks for a great piece of software.
I have a small bug to report. I can consistently get the "programming error" pop-up with these steps:
- Create an event in google calendar
- synchronize
- Delete the event on the N900
- synchronize
- and then synchronizing no longer works. If I then delete the event in google calendar, things start working again.
Traceback (most recent call last):
File "/usr/bin/erminig", line 121, sync_all_profiles(widget=<gtk.ToolButton object at 0x41bfb328 (GtkToolButton at 0x4b61b8)>, data=<hildon.StackableWindow object at 0x41bfb1c0 (HildonStackableWindow at 0x442060)>)
id = i[0]
do_profile_sync(id, data)
variables: {'data': ('local', <hildon.StackableWindow object at 0x41bfb1c0 (HildonStackableWindow at 0x442060)>), 'id': ('local', 1), 'do_profile_sync': ('global', <function do_profile_sync at 0x41c28430>)}
File "/usr/bin/erminig", line 110, do_profile_sync(id=1, data=<hildon.StackableWindow object at 0x41bfb1c0 (HildonStackableWindow at 0x442060)>)
profile['remoteSource'], \
profile['lastLocalUpdate'], currentTime, progress)
variables: {'profile': ('local', {'lastUpdate': 1268337360, 'direction': 0, 'lastLocalUpdate': 1268337364, 'remoteSourceTitle': u'christian@surlykke.dk', 'remoteAccountId': 1, 'enabled': 1, 'localSource': u'1', 'remoteSource': u'christian@surlykke.dk', 'localSourceTitle': u'N900', 'id': 1}), 'progress': ('local', <gtk.ProgressBar object at 0x41c00198 (GtkProgressBar at 0x4c2890)>), 'currentTime': ('local', 1268337423)}
File "/usr/share/erminig/erminig_core.py", line 365, local_sync(pid=1, localSource=u'1', remoteSource=u'christian@surlykke.dk', lastSync=1268337364, stime=1268337423, progress=<gtk.ProgressBar object at 0x41c00198 (GtkProgressBar at 0x4c2890)>)
getUpdatedEventsFromLocal(pid, int(localSource), remoteSource, lastSync, progress)
getDeletedEventsFromLocal(pid, int(localSource), remoteSource, lastSync, progress)
variables: {'lastSync': ('local', 1268337364), 'int': ('builtin', <type 'int'>), 'pid': ('local', 1), 'getDeletedEventsFromLocal': ('global', <function getDeletedEventsFromLocal at 0x41be3070>), 'localSource': ('local', u'1'), 'remoteSource': ('local', u'christian@surlykke.dk'), 'progress': ('local', <gtk.ProgressBar object at 0x41c00198 (GtkProgressBar at 0x4c2890)>)}
File "/usr/share/erminig/erminig_core.py", line 353, getDeletedEventsFromLocal(pid=1, localSource=1, remoteSource=u'christian@surlykke.dk', lastSync=1268337364, progress=<gtk.ProgressBar object at 0x41c00198 (GtkProgressBar at 0x4c2890)>)
event = google_api.run_google_action(google_api.gd_client. GetCalendarEventEntry, urllib.quote("/calendar/feeds/" + remoteSource + "/private/full/" + gid))
google_api.run_google_action(google_api.gd_client. DeleteEvent, event.GetEditLink().href)
variables: {'google_api.gd_client.DeleteEvent': ('global', <bound method CalendarService.DeleteEvent of <gdata.calendar.service.CalendarService object at 0x410ae1f0>>), 'href': (None, None), 'google_api.run_google_action': ('global', <function run_google_action at 0x41bd9470>), 'event.GetEditLink': ('local', <bound method CalendarEventEntry.GetEditLink of <gdata.calendar.CalendarEventEntry object at 0x41d10590>>)}
File "/usr/share/erminig/google_api.py", line 32, run_google_action(func=<bound method CalendarService.DeleteEvent of <gd...ar.service.CalendarService object at 0x410ae1f0>>, *args=('https://www.google.com/calendar/feeds/christian%...ivate/full/kv5e5r8cc9j99ffolgbpobtggs/63404020542',), **kwargs={})
return res
variables: {'res': (None, None)}
UnboundLocalError: local variable 'res' referenced before assignment
Quote & Reply
|
surlykke
View Public Profile
Send a private message to surlykke
Find all posts by surlykke