Notices


Reply
Thread Tools
shanttu's Avatar
Posts: 234 | Thanked: 281 times | Joined on Nov 2010 @ Helsinki
#601
Originally Posted by reinob View Post
Just to add: I've decided to remove all support for synchronizing alarms, so the alarms I set on the N900 stay there and the alarms I set in google calendar stay also there.

Now I'm a fully happy user of erminig
Would like that as well. Would you mind sharing the instructions (=what lines to edit)?
 
Posts: 81 | Thanked: 9 times | Joined on Nov 2007
#602
Or even better a unified diff.
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#603
Originally Posted by shanttu View Post
Would like that as well. Would you mind sharing the instructions (=what lines to edit)?
Hmm.. I guess it's too late for that. It was a quick search-&-destroy-and-leave-no-backups kind of job

I only edited two files: Event.py and erminig-core.py

In Event.py you basically have to make sure that no matter what self.alarm is never assigned to anything other than -1.

At the very end you have the notorious def get_alarm that should stay as "return self.alarm" (i.e. NOT str(self.alarm)) or anything else. As a bonus you can also put "return -1" but that doesn't really matter.

What matters is at the beginning (def __init__ ...) The last line of that function should read "self-alarm = -1".

This way you make sure that anything coming from google (i.e. any event being created to be stored on the N900) will be stripped of any alarms.

For the other direction (i.e. no alarms of your N900 will go to google), you need to edit erminig_core.py.

The changes there were a bit larger. Basically removing any line dealing with the word "alarm" (except those calling the shared library, because I didn't want to recompile it.)

You can have a look here: http://geni.ath.cx/maemo/erminig-0.2.11.patch
That was the patch that brought the alarm framework to erminig, so basically you have to "undo" those changes, except, again, those dealing with the shared library.

So delete things like:
Code:
  if len(e.reminder) > 0:
				alarm = int(e.reminder[0].minutes)

..

 if len(e.when[0].reminder) > 0:
				alarm = int(e.when[0].reminder[0].minutes)

..

		if len(event.reminder) > 0:
			event.reminder[0].minutes = evt.get_alarm()
		else:	event.reminder.append(gdata.calendar.Reminder(minutes=evt.get_alarm()));


..

		if len(event.when[0].reminder) > 0:
			event.when[0].reminder[0].minutes = evt.get_alarm()
		else:
event.when[0].reminder.append(gdata.calendar.Reminder(minutes=evt.get_alarm()));
That's four small chunks, so it should be trivial to do.
Otherwise I can send you my erminig_core.py and you do the diff. Or you wait until I have time to grab the file from the .deb and do the diff myself (but I can't do it from work, i.e. now, and at home I usually have no time to hack around..)

Cheers.
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
Posts: 131 | Thanked: 241 times | Joined on Feb 2012
#604
I want to make a new release of erminig containing the newest patches. I hope this is ok, but if you think i should not touch the package, than i will not do anything.

I want to add the patch from http://talk.maemo.org/showpost.php?p...&postcount=558 for full day events

/opt/maemo/usr/share/erminig/erminig_core.py:
tz = time.timezone
if (time.daylight):
tz = time.altzone
start_time += tz
end_time += tz
#start_time += time.timezone
#end_time += time.timezone
I also want to add the patch from http://talk.maemo.org/showpost.php?p...&postcount=595

which fixes the 0 minute alarm bug
def get_alarm(self):
return self.alarm
Do you have more patches which i should inserted in the new version of erminig? What do you think?

I will only change those few line and nothing else.

Last edited by HolgerN; 2012-04-17 at 14:53.
 

The Following 4 Users Say Thank You to HolgerN For This Useful Post:
Posts: 131 | Thanked: 241 times | Joined on Feb 2012
#605
Ok i pushed a new version 0.2.12.5 to extras devel.

I fixed the full day events bug for daylight savings
tz = time.timezone
if (time.localtime(start_time).tm_isdst):
tz = time.altzone
start_time += tz
end_time += tz
#start_time += time.timezone
#end_time += time.timezone
The 0 minute alarm bug is also fixed.

Last edited by HolgerN; 2012-04-18 at 12:23.
 

The Following 6 Users Say Thank You to HolgerN For This Useful Post:
Posts: 250 | Thanked: 126 times | Joined on Dec 2010
#606
Hi
Allways wanted to use Erminig but never being able to.
This is the log file I get when trying to modify, delete account or sync:

Traceback (most recent call last):
File "/opt/maemo/usr/share/erminig/settings_ui.py", line 17, del_google_acct(widget=<hildon.Button object at 0x41e743c8 (HildonButton at 0x5cc490)>, data=<hildon.Dialog object at 0x41e70698 (HildonDialog at 0x5bb9d0)>)
def del_google_acct(widget, data):
id = get_google_acct_id()
account = google_accounts.get_account_by_id(id)
variables: {'id': ('builtin', <built-in function id>), 'get_google_acct_id': ('global', <function get_google_acct_id at 0x416c9af0>)}
File "/opt/maemo/usr/share/erminig/settings_ui.py", line 14, get_google_acct_id()
(model, iter) = ts.get_selected()
return model.get_value(iter, 0)
variables: {'model.get_value': ('local', <built-in method get_value of gtk.ListStore object at 0x41e74170>), 'iter': ('local', None)}
TypeError: iter must be a GtkTreeIter

Any idea I really want to give it a try
 
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#607
Originally Posted by guilledoc View Post
Hi
Allways wanted to use Erminig but never being able to.
This is the log file I get when trying to modify, delete account or sync:

Traceback (most recent call last):
File "/opt/maemo/usr/share/erminig/settings_ui.py", line 17, del_google_acct(widget=<hildon.Button object at 0x41e743c8 (HildonButton at 0x5cc490)>, data=<hildon.Dialog object at 0x41e70698 (HildonDialog at 0x5bb9d0)>)
def del_google_acct(widget, data):
id = get_google_acct_id()
account = google_accounts.get_account_by_id(id)
variables: {'id': ('builtin', <built-in function id>), 'get_google_acct_id': ('global', <function get_google_acct_id at 0x416c9af0>)}
File "/opt/maemo/usr/share/erminig/settings_ui.py", line 14, get_google_acct_id()
(model, iter) = ts.get_selected()
return model.get_value(iter, 0)
variables: {'model.get_value': ('local', <built-in method get_value of gtk.ListStore object at 0x41e74170>), 'iter': ('local', None)}
TypeError: iter must be a GtkTreeIter

Any idea I really want to give it a try
Yes, once in I while I retest it and found all this weird crashes, my suggestion is to reinstall the application but first run a dpkg --purge and be sure that no configuration files are left.
 

The Following User Says Thank You to ivgalvez For This Useful Post:
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#608
Installed, entered the Google account and not checked the auto-synchronize option, then pressed the + button and the application stopped responding.

Now every time I open Erming-NG and press the + button it stops.
 
Posts: 250 | Thanked: 126 times | Joined on Dec 2010
#609
Originally Posted by ivgalvez View Post
Yes, once in I while I retest it and found all this weird crashes, my suggestion is to reinstall the application but first run a dpkg --purge and be sure that no configuration files are left.
did it same problem any ideas?
 
Posts: 58 | Thanked: 43 times | Joined on Aug 2010
#610
Wow, HolgerN, thanks for picking up on the development!

A while ago, I tried running Erminig 3.0 (from the repos, check garage) on the N900 (Maemo5), but I was not able to get it together. I believe it was something with the built-in calendar in Maemo4. However, I remember some fixes for the Google Accounts handling was included in the 3.0 version. The source/data can be found here: https://garage.maemo.org/frs/?group_id=702. Hope to be of help!
 

The Following User Says Thank You to BertvanDorp For This Useful Post:
Reply

Tags
erminig, erminig-ng, ernie nig, google calendar, google sync, synchronization

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:41.