Today zerwas explained me how to get the gmail contacts into gimmie.
It would be nice if it shows me the count of unreaded mails too :)
Iam not familiar with python and object oriented programming.
I can programm a microcontroller in C an Assembler and have some
skills in PHP and JS an some knowledge about AJAX but i think thats
not enough. :)
I checked the gimmie source from the svn but don't know how to
start :)
Some helping explanations would be nice ;)
Michi
First step is to get gimmie building. Let me know if you have any
trouble. Then just start poking around to see what works and what
doesn't. Luckily, it's python, so it's easy to experiment :-)
-Alex
The libgmail includes some demo files.
To get the number of unreaded msgs there is a method calld
getUnreadMsgCount()
I think ga is our object that is logged into gmail.
I coppied the get_contacts method in the gimmie_gmail.py
an changed it they way i think it should work :)
looks like:
def get_mails(self):
if self.logged_in == False:
self._login()
countedMails = ga.getUnreadMsgCount()
return countedMails
But i dont know where to call it to print the count before the gmail
contact list
I found :
for item in gmail_reader.get_contacts():
yield item
in the same file in line 201
so i added
yield gmail_reader.get_mails()
after that line and build everything.
When i now press the gmail button gimmie crashes.
Whats wrong? :)
On 19 Sep., 01:18, "Alex Graveley" <a...@beatniksoftware.com> wrote:
> Welcome!
>
> First step is to get gimmie building. Let me know if you have any on
> trouble. Then just start poking around to see what works
> doesn't. Luckily, it's python, so it's easy to experiment :-)
>
> -Alex
>
On 19 Sep., 14:42, "michaelkr...@googlemail.com"
> > > Michi- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
I've got the latest CVS version of libgmail, but contacts still
doesn't work. After I tipped my account infos gimmie crashs with
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_topicwin.py",
line 750, in _idle_load_items
for i in items:
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_base.py", line
249, in get_items
for i in self.get_items_uncached():
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_gmail.py", line
200, in get_items_uncached
for item in gmail_reader.get_contacts():
File "/usr/lib/python2.5/site-packages/gimmie/gimmie_gmail.py", line
314, in get_contacts
contacts = acct.getContacts()
File "/usr/lib/python2.5/site-packages/gimmie/libgmail.py", line
797, in getContacts
addresses = myData['cl']
KeyError: 'cl'
Any idea?
Alendit
You shouldn't need libgmail CVS installed at all anymore since trunk
now includes the CVS version.
-Alex
-Alex
On Nov 2, 2007 4:20 PM, michae...@googlemail.com
got another problem. When I start gimmie first time and try to login
in gmail, it asks keyring if it has the key. There a windows where I
should enter master password, but i can't, because the hole desktop
freezes. I must change to another terminal, kill gimmie_applet and
then I can use the desktop again. If a do the same thing one more time
it problem doesn't occur.
Alendit
asked xfollower (dev of libgmail), waiting for the answer.
Stange is that on a console I can't even login into my gmail account
>>> import libgmail
>>> ga = libgmail.GmailAccount("ale...@gmail.com", "iluvatar!")
>>> ga.login()
HTTP Error 302: The HTTP server returned a redirect error that would
lead to an infinite loop.
The last 30x error message was:
Moved Temporarily
Maybe this error happens because of this.
Also found this
http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=798083
Alendit
[11:08:53] alendit: Hi
[11:08:59] alendit: are you the andrei fortuna, who posted a job on
fixing libgmail?
[11:09:06] alendit: if its you can you tell if its already done
[11:09:13] alendit: gimmie project (another gnome panel) is using
libgmail and now with broken libgmail this funktion doesn't work
[11:09:51] 12923517: hey man - superb news!
[11:10:08] 12923517: oh wait
[11:10:15] alendit: ^^
[11:10:36] 12923517: no, sry, didn't find a solution except use gmail
smtp server
[11:11:16] alendit: ok, thanks...if you find any plz post it somewhere
[11:11:27] 12923517: it enters a kind of infinite loop when trying to
retrieve cookies from a page
[11:11:34] 12923517: sure
[11:11:38] alendit: see ya
I hope someone can fix it or it will be difficult with gmail support.
Alendit
Alendit