maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar (https://talk.maemo.org/showthread.php?t=40408)

lorelei 2010-02-04 17:38

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Quanzel (Post 510298)
What do you think about autosync and running in the background? Will it be possible to set a syncinterval?

Traditionally (= in Erminig for Diablo) there was the possibility of running Erminig in text-mode and some users defined periodical runs with cron. This is not really user-friendly, so yes the possibility to auto-sync/proper backgrounding is a good idea.

This is something that I can implement for sure: now the question is when :) Let's say that I will keep this idea in mind for the future developments, once I have stable release rolling.

Palleman 2010-02-04 22:47

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 509483)
Code:

                print "updated_min=%s" % (query.updated_min)
                print "updated_max=%s" % (query.updated_max)


Min 2010-02-02T11:37TZ and max 2010-02-04T22:36:36.64TZ

The second one includes seconds and 1/100 of seconds. Never seen that before, but maybe it's normal.

The error messages are the same, but the first two errors have a line number of one less (525 and 504). Guess you removed a line between the versions.
Quote:

Originally Posted by lorelei (Post 509483)
PS: just to make sure: did you remove the symlink to iso8601.py you created?

Yup.

Is it possible to run screen on N900? If so, and if you want to debug this, I could let you in through ssh and watch over you with screen -x.

Bonus URL.

/P

lorelei 2010-02-04 23:17

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
1 Attachment(s)
Quote:

Originally Posted by Palleman (Post 511132)
Min 2010-02-02T11:37TZ and max 2010-02-04T22:36:36.64TZ

The second one includes seconds and 1/100 of seconds. Never seen that before, but maybe it's normal.

Interesting. I have this:

updated_min=2010-02-03T22:47:08Z
updated_max=2010-02-04T22:56:54.78Z

notice how I don't have a trailing TZ but only a Z. I now understand why Google is barfing on the dates it receives from you (TZ is not valid).

Now the question is why does Erminig generates stuff with TZ.

Please put the file attached to this post in the same directory as erminig-ng, and run it like this (I've just extracted a fragment of the code that manages the dates):

Code:

python2.5 testdate.txt 126511062
the number above is the UNIX timestamp you posted previously.
I get this output, and yours should be exactly the same:

Code:

['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
 *** 2010-02-02T11:37Z
1265110620 -> 2010-02-02T11:37:00.000Z

Quote:

Bonus URL.
:D

thanks

Palleman 2010-02-05 00:32

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 511153)
notice how I don't have a trailing TZ but only a Z. I now understand why Google is barfing on the dates it receives from you (TZ is not valid).

Mittåt! My mistake. Disregard the T, I was mislead by the 7Z on the first line. There are only Z's.

Should I still run the time converter?

/P

lorelei 2010-02-05 00:37

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 511216)
Mittåt! My mistake. Disregard the T, I was mislead by the 7Z on the first line. There are only Z's.

Should I still run the time converter?

/P

yes please: there are some other information in the output that may be of interest.

thanks

Palleman 2010-02-05 01:08

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 511153)
Code:

python2.5 testdate.txt 126511062

Code:

['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
126511062 -> 1974-01-04T05:57:42.000Z

Quote:

Originally Posted by lorelei (Post 511153)
the number above is the UNIX timestamp you posted previously.

No, it's not.
Quote:

Originally Posted by lorelei (Post 511153)
Code:

['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
 *** 2010-02-02T11:37Z
1265110620 -> 2010-02-02T11:37:00.000Z


But that one is!

I get the exact same output, except that the line beginning with three stars is not there:
Code:

['__builtins__', '__date_re', '__datetime_re', '__datetime_rx', '__doc__', '__extract_date', '__extract_time', '__extract_tzd', '__file__', '__find_julian', '__name__', '__time_re', '__tzd_re', '__tzd_rx', '__version__', 'ctime', 'parse', 'parse_timezone', 'time', 'tostring']
1265110620 -> 2010-02-02T11:37:00.000Z

/P

lorelei 2010-02-05 09:02

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 511240)
No, it's not.

correct. I missed the trailing 0 in my copy-paste :(

Quote:

But that one is!

I get the exact same output, except that the line beginning with three stars is not there:
Again my fault (note to self: I shouldn't do debugging when I'm tired).

In fact I've been able to replicate the problem this morning, and I also have the right solution in mind. Please expect an updated by the end of the day (i.e. as soon as I get back to home :))

The problem is that in some cases the iso8601 module doesn't return the string date in the a format that Google likes, and your timestamp in particular is one of those that make it spit out bad values. Originally there's already code to manage those cases (it's part of the snippet of code I made you try a few posts ago), but for some reason that I can't come up with, the part of the code that generates the date boundaries for Google doesn't make use of the "workaround code" (albeit being used elsewhere in the code...I gather that the buggy code is probably the very first part of Erminig written, when I did not hit date problems at that moment).

thank you very much for your patience!

lorelei 2010-02-05 18:16

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
A new version (with an easy-to-use GUI) is now available at
this post.


The version that was available here has been removed, and only the text of this post will remain for historical purposes.

************************************************** ******************

Here is an updated version of Erminig-NG (namely version 0.1.2). It fixes the bug Palleman was having in respect of dates incorrectly formatted.

This is the only bug fix in this new release. This is not a mandatory update, but under specific conditions the bug can be triggered, so I advise to make the update if you have the occasion to.

There's a chance in 60 (very exactly!) that you will get this bug: in fact it is triggered when the timestamp of the last update falls exactly at a whole minute (for instance 12:30:00).

shoko 2010-02-05 20:01

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Just a quick note: When the sync-calenders option is executed as root (standard for anyone using ssh server) the calendars, the operation runs without a problem (calendars GUI prompts and all) but the calendars aren't created under 'user'. Removing ~/.erminig.db and resyncing as 'user' fixes the problem.

lorelei 2010-02-05 21:46

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by shoko (Post 512308)
Just a quick note: When the sync-calenders option is executed as root (standard for anyone using ssh server) the calendars, the operation runs without a problem (calendars GUI prompts and all) but the calendars aren't created under 'user'. Removing ~/.erminig.db and resyncing as 'user' fixes the problem.

That's true. The path to the erminig.db database is hardcoded as /home/user. I will change that to be $HOME. This shouldn't be an issue with the later releases, where the GUI will be available and normally not run as root.

(fixed in my internal release, will be available in the next public release)

Palleman 2010-02-05 23:35

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 512190)
There's a chance in 60 (very exactly!) that you will get this bug: in fact it is triggered when the timestamp of the last update falls exactly at a whole minute (for instance 12:30:00).

So, adding a second to the timestamp in config would have solved it? Anyway, 0.1.2 did.
/P

Palleman 2010-02-05 23:48

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
The bug report formerly in this post was just me being to impatient, but here's another one that might interest you:

Code:

/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
~/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
Traceback (most recent call last):
  File "erminig-ng", line 520, in <module>
    getAllCalendars()
  File "erminig-ng", line 190, in getAllCalendars
    createGoogleCalendar(id, cal)
  File "erminig-ng", line 137, in createGoogleCalendar
    new_calendar = gd_client.InsertCalendar(new_calendar=calendar)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 207, in InsertCalendar
    converter=gdata.calendar.CalendarListEntryFromString)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1178, in Post
    media_source=media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1295, in PostOrPut
    'body': result_body}
gdata.service.RequestError: {'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="http://www.google.com/calendar/feeds/default/owncalendars/full?gsessionid=FeLmldAkcyhgByN_0WPPwA">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect received, but redirects_remaining <= 0'}
~/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
~/erminig-ng-0.1.2 $

This is:
1. Answering no to all calendars.
2. Answering yes to create N900 on Google - got error.
3. Answering yes to create N900 on Google - worked.

Although it seems that it didn't export the existing stuff in the N900 calendar to the Google N900 calendar?

Is there a way to remove this N900 configuration and recreate the bond, without affecting the other connection I have (where my main Google calendar created a calendar on my N900)?

/P

lorelei 2010-02-06 00:11

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

So, adding a second to the timestamp in config would have solved it?
yes, but of course this would not have been a good solution :) Anyway, now the problem has been fixed in the code, so this won't come back. Thank you for your help!

Quote:

Originally Posted by Palleman (Post 512574)
but here,s another one that might interest you:
[...]

yup, this one is not an unknown one: got hit by it a few days ago. this situation is handled correctly in a few cases but not in others (so the fix can be trivial, but I want to make it generic and clean)

To fix in the interim: you can redo the actions (i.e. asking for the creation of calendars on Google) until Google cooperates. Usually on the second try everything goes well. A more definitive fix will come up in the next release (I still don't know whether it will be a major release with GUI, or just a bugfix release).

Palleman 2010-02-06 00:29

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 512591)
To fix in the interim: you can redo the actions (i.e. asking for the creation of calendars on Google) until Google cooperates. Usually on the second try everything goes well.

Yup, it did for me as well (look in my "code" section here).

I think you missed this edit:

Quote:

Originally Posted by Palleman (Post 512574)
Although it seems that it didn't export the existing stuff in the N900 calendar to the Google N900 calendar?

Is there a way to remove this N900 configuration and recreate the bond, without affecting the other connection I have (where my main Google calendar created a calendar on my N900)

I looked into the .erminigdb file. Deleting the test events I created in the involved calendars, and removing the corresponding entry in googleIDs should make erminig ask again about the same calendar, right?

/P

lorelei 2010-02-06 00:41

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

I looked into the .erminigdb file. Deleting the test events I created in the involved calendars, and removing the corresponding entry in googleIDs should make erminig ask again about the same calendar, right?

Woops, missed the edit, indeed!

To answer your question: yes, what makes Erminig ask for a new calendar is the entry in googleIDs. If an entry alread exist, then it won't ask you about that calendar. The format of that table is:

local_calendar_id | google_calendar_id

you should also perform cleanup in the events table (in erminigdb), by removing local events ids and the corresponding google id. Local events (and their IDs) are stored in ~/.calendar/calendardb sqlite3 file, so you may be able to track down which events you want to remove (many events information are stored in the Components table).

Beware that fiddling with the calendar db can be dangerous...

Palleman 2010-02-06 01:13

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 512611)
you should also perform cleanup in the events table (in erminigdb),

I didn't have to do that. Erminig recognized the events as if I had never deleted the entry in googleIDs.

Reran --sync-calendars and a couple of ordinary syncs, but the existing data still won't get synced. The data in the N9i00 calendar is synced to my N900 calendar via MfE (from another Exchange server than the one mentioned in an earlier post). So I'm trying another approach - chaning MfE to sync to the calendar created by Erminig when I did --sync-calendar from my main Google calendar.

Quote:

Originally Posted by lorelei (Post 512611)
Beware that fiddling with the calendar db can be dangerous...

That's why I love this device.

Palleman 2010-02-06 02:10

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Just when you thought I ran out of bug reports:
Code:

-------------------------------------------
Traceback (most recent call last):
  File "erminig-ng", line 524, in <module>
    syncNewEvents()
  File "erminig-ng", line 503, in syncNewEvents
    getNewEventsFromGoogle(lastSync)
  File "erminig-ng", line 290, in getNewEventsFromGoogle
    feed = gd_client.CalendarQuery(query)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 126, in CalendarQuery
    converter=gdata.calendar.CalendarEventFeedFromString)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 118, in Query
    result = self.Get(uri, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1039, in Get
    encoding=encoding, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1050, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 403, 'body': 'the@pal.pp.se har inte l\xc3\xa4s\xc3\xa5tkomst till kalendern som \xc3\xa4gs av g1op2h8ebo5ecbqg7eqb8ihh3c@group.calendar.google.com.', 'reason': 'Forbidden'}
~/erminig-ng-0.1.2 $

Dunno why the error message is in Swedish... everything on my Google and on my N900 is in English. Anyway, the translation is "the@pal.pp.se don't have access to the calendar owned by blahblah@blahblah".

Before the error it successfully synced a lot of events.

Edit: The error is repeating at each run, but not until the same bunch of birthdays has been ignored, and a couple of updates have been updated (or at least it says so on screen).

/P

lorelei 2010-02-06 11:36

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 512636)
Reran --sync-calendars and a couple of ordinary syncs, but the existing data still won't get synced. The data in the N9i00 calendar is synced to my N900 calendar via MfE (from another Exchange server than the one mentioned in an earlier post). So I'm trying another approach - chaning MfE to sync to the calendar created by Erminig when I did --sync-calendar from my main Google calendar.

Hmmm, I'm note sure I really understood the problem, but possible hint: the "last synchronization timestamp" is global to all calendars (for the moment, this will change in the upcoming release), so if you synced a first calendar, then add a new one with --sync-calendars, events prior to the last sync won't be synchronized in your newly added calendar.

This is a shortcoming that will also be fixed in the next major version.

Palleman 2010-02-06 20:01

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Ah, that explains it. So I should have deleted all calendars on N900, deleted the .erminigdb file and then run --sync-calendars.

I can also report that changing which calendar MfE should sync with made MfE delete a few thousand entries on that Exchange server and then added all entries from the calendar (the one I changed to) on my N900. :)

/P

rmarcus 2010-02-07 01:18

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Hi everybody! A little help please.
Everytime I try to unzip it I get "permission denied" as you can see...I am totaly new at this.

thanx in advance!

lorelei 2010-02-07 15:47

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by rmarcus (Post 513836)
Hi everybody! A little help please.
Everytime I try to unzip it I get "permission denied" as you can see...I am totaly new at this.

Care to share some more context? What command are you using in the x-term? Where is located the archive you want to uncompress?

At any rate, erminig-ng cannot be installed in MyDocs (or any subdirectory of it), since it relies on the executability of a library that cannot be there....For the moment the best location is directly in /home/user, at least until I manage to properly package it in a .deb.

sandybeach 2010-02-07 15:59

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Great news !!

Perhaps ideas for future would be if you could add on:

google contacts, docs bi-directional sync

You would have a powerful took !!

Palleman 2010-02-07 19:41

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Google Contacts would be great. I've been struggling for a while now, trying to sync both directly from N900 (Syncevolution) or via Outlook, Plaxo, Soocial and a couple of other services. None of them work.

Lorerei: Did you notice this?

/P

rmarcus 2010-02-07 23:10

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 514439)
Care to share some more context? What command are you using in the x-term? Where is located the archive you want to uncompress?

At any rate, erminig-ng cannot be installed in MyDocs (or any subdirectory of it), since it relies on the executability of a library that cannot be there....For the moment the best location is directly in /home/user, at least until I manage to properly package it in a .deb.

All right, it was in Mydocs, so where should I place the zipped file? and How can I unzip it? Using gunzip?

Thanx a lot

Rod:o

lorelei 2010-02-07 23:28

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 514744)
Lorerei: Did you notice this?

Yup, I'm still thinking about the problem and how to debug it. I will come back to you in the next few days with some code modification to pinpoint the problem.

In the meantime, just a question: is that event from a shared calendar?

Also, to determine which calendar Erminig is talking about:

- go to Google Calendar
- settings
- Calendars
- select one of the calendar
- near the bottom (under the heading "Calendar Address") there's the ID of the calendar.

Does the calendar where Erminig is crashing has something special?

thanks

lorelei 2010-02-07 23:29

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by rmarcus (Post 515050)
All right, it was in Mydocs, so where should I place the zipped file? and How can I unzip it? Using gunzip?

- File should be placed in /home/user
- to decompress the archive:

Code:

tar zxvf erminig-ng-0.1.2.tar.gz
in the terminal.

rmarcus 2010-02-07 23:38

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 515081)
- File should be placed in /home/user
- to decompress the archive:

Code:

tar zxvf erminig-ng-0.1.2.tar.gz
in the terminal.

Thanx lorelei, the thing is, I am a PC user, which folder does it correspond in the file manager? There is no user folder...I know I may sound stupid...

Thanx again

Palleman 2010-02-08 01:57

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 515078)
In the meantime, just a question: is that event from a shared calendar?

I don't know. It's none of the calendars I got configured at Google (I went through them all).

/P

lorelei 2010-02-08 07:10

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 515236)
I don't know. It's none of the calendars I got configured at Google (I went through them all).

OK, I get it. I was able to reproduce the problem with my own calendars. I managed to get the same error message (in german ??).

I think that you are trying to synchronize a calendar that doesn't exist anymore on Google (did you delete one or several of them?).

To repair the problem from the command line, we must unbind the local calendar with the non-existing Google one:

Code:

$ sqlite3 ~/.erminig.db
sqlite> delete from GoogleIDs where googleID = "g1op2h8ebo5ecbqg7eqb8ihh3c@group.calendar.google.com"

Here I took the calendar ID you posted before...

Once that entry is removed, you should be able to continue the synchronization. If another similar error comes up, please remove also that entry from the Erminig database.

tuxfoo 2010-02-08 21:32

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
FYI: As we thought, preserving the read-only status is trivial.

On the calendar-backend side (calaccess.cc), we need to set the read-only flag when we create the local calendar (third parameter to mc->addCalendar, currently hard coded to false). Obviously cwrapper.py needs to be updated accordingly.

Before we create the calendar in erminig-ng, we just read 'cal.access_level.value'. Simple approach would be if it is set to "read", then create the local calendar read-only. A more complete approach would be to consider all possible values which might indicate that we don't have any access to the calendar (then why is it in the feed?) or that we only have access to free/busy information from the calendar.

I did this in a quick hack and it does work, setting the "US Holidays" shared calendar from google as read-only locally. If I try to add a new event on the n900, it doesn't present the "US Holidays" calendar as an option.

I'm assuming the code is somewhat in flux as lorelei is flushing out the initial features and GUI. If you want me to throw together a patch now, let me know. Otherwise I'll wait until core features are flushed out, including a GUI.

ezcola 2010-02-08 21:43

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 510188)
Yes, I agree that the direction column is highly confusing. In fact I was a bit out of ideas about how to present that piece of information and was counting on the community to come up with a good idea ;)

I will probably end up displaying (as you suggest) "From Google" and "To Google"...

**************************************

I would prefer the arrows even though it not might be just as clear, but it would reduse the amount (and therefore errors) of translating if that is to be done some day.

Just my opinion.

Thank you very much for your work on Erminin-NG!!!
...it is much appreciated.:)

lorelei 2010-02-08 21:49

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by tuxfoo (Post 516821)
I'm assuming the code is somewhat in flux as lorelei is flushing out the initial features and GUI. If you want me to throw together a patch now, let me know. Otherwise I'll wait until core features are flushed out, including a GUI.

You can send the patch my way, either by mail (see first post), or by attaching it here.

Thanks for having looked up this issue for me: I will integrate the patch within the current "non-GUI" branch, to be later picked up by the GUI branch (which, by the way, is almost complete: all what remains to do is to interface the GUI with the core functionalities, and a few GUI remodeling, since I'm not entirely happy with the wizard functionality of hildon)

lorelei 2010-02-08 21:52

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by ezcola (Post 516835)
I would prefer the arrows even though it not might be just as clear, but it would reduse the amount (and therefore errors) of translating if that is to be done some day.

yes, I also prefer the arrows, but as you pointed out they are not really clear, unless I present the information this way (beware cheesy "ascii art" coming up!):

Code:

[N900] <-> G  (oogle logo)
[N900] <- G  (oogle logo)
[N900] -> G  (oogle logo)

any thought about this possibility?

Palleman 2010-02-08 22:00

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 516856)
Code:

[N900] <-> G  (oogle logo)
[N900] <- G  (oogle logo)
[N900] -> G  (oogle logo)


That's perfect, especially considering that the local calendar is to the left of the arrow (put last update timestamp as last in line, and even better - replace "built-in" / "GPE" with the calendar names?).

Palleman 2010-02-09 00:25

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
1 Attachment(s)
Something like this?

Laughing Man 2010-02-09 00:32

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Instead of Local and Remote in the headers I would use

N900 and Google

To minimize confusion (since some people may not know local or remote).

Palleman 2010-02-09 11:51

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
"N900" is the name of the default calendar in N900, so it might only add to the confusion. But you could put "Phone" and "Google" as headers (as long as this thingy doesn't support other sync partners).

Also, the "Type" column could be headerless and use icons for calendar and contacts, freeing some horizontal space.

lorelei 2010-02-09 12:14

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by Palleman (Post 517551)
"N900" is the name of the default calendar in N900, so it might only add to the confusion. But you could put "Phone" and "Google" as headers (as long as this thingy doesn't support other sync partners).

I will put Device and Google. On the remote end I don't plan to support anything else than Google, but on the local end, it's supposed to also support the N800 with Diablo.



Quote:

Also, the "Type" column could be headerless and use icons for calendar and contacts, freeing some horizontal space.
Yes, I was also thinking of using icons for the calendar and contact, since it's starting to get a bit cramped on each line

If I get the time I will put up a new screenshot of the main window, so that we can further discuss that.

Just to sum it up, the layout of the different column will be like this:

green/red dot, profile name, sync type (with cal/abook icon), source (built-in/GPE), name of local calendar, direction icon, name of remote calendar, last sync

Palleman 2010-02-09 12:56

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
Quote:

Originally Posted by lorelei (Post 517575)
green/red dot

Is that working/broken or enabled/disabled?

Palleman 2010-02-09 13:01

Re: [Announce] Erminig-NG: two-way synchronization Google Calendar <-> Fremantle Calendar
 
New error:
Code:

Deleting Google event _60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g60o42h2264q32h2561346g9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g8cr36c9i88p34h1k68pj8d1k610jih1g6gr4ce218p342dhl6gpg
2083
Traceback (most recent call last):
  File "erminig-ng", line 524, in <module>
    syncNewEvents()
  File "erminig-ng", line 506, in syncNewEvents
    getDeletedEventsFromLocal(lastSync)
  File "erminig-ng", line 495, in getDeletedEventsFromLocal
    + googlecid + "/private/full/" + gid))
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 76, in GetCalendarEventEntry
    return self.Get(uri, converter=gdata.calendar.CalendarEventEntryFromString)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1050, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 404, 'body': '<html><head><meta http-equiv="content-type" content="text/html;charset=UTF-8">\n<title>Fel</title>\n<style type="text/css">body {font-family: arial,sans-serif}</style></head>\n<body text="#000000" bgcolor="#ffffff"><table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td rowspan="3" width="1%" nowrap><b><font face="times" size="10"><font color="#0039b6">G</font> <font color="#c41200">o</font> <font color="#f3c518">o</font> <font color="#0039b6">g</font> <font color="#30a72f">l</font> <font color="#c41200">e</font></font>&nbsp;&nbsp;</b></td>\n<td>&nbsp;</td></tr>\n<tr><td bgcolor="#3366cc"><font face="arial,sans-serif" color="#ffffff"><b>Fel</b></font></td></tr>\n<tr><td>&nbsp;</td></tr></table>\n<blockquote>Du har inte \xc3\xa5tkomst till beg\xc3\xa4rd kalender</blockquote>\n<p></p>\n<div style="background:#3366cc; width:1px; height:4px"></div></body></html>', 'reason': 'Not Found'}

Edit: "Du har inte \xc3\xa5tkomst till beg\xc3\xa4rd kalender" translates to "You have no access to requested calendar".


All times are GMT. The time now is 15:32.

vBulletin® Version 3.8.8