After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 429518 - Gmail account settings not savec
Gmail account settings not savec
Status: RESOLVED FIXED
Product: gimmie
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Gimmie Maintainers
Gimmie Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-13 21:58 UTC by Thomas HAMEL
Modified: 2007-10-06 02:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
make GMail keyring working (663 bytes, patch)
2007-09-16 11:38 UTC, H.
none Details | Review

Description Thomas HAMEL 2007-04-13 21:58:16 UTC
Please describe the problem:
Gmail accounts settings are always asked, stored into the keyring but never retrieved.

The problem comes from the fact that the gmail_account_token in gconf is always 0.

Steps to reproduce:
1. click on the gmail button in people
2. give your account settings
3. go to 1.


Actual results:
not much apparently

Expected results:
have something more interesting than a login prompt over and over

Does this happen every time?
yes

Other information:
The problem come from the fact that the token returned from gnomekeyring create is a long and the gconf_bridge.set refuse to set it.

Does this work for someone ? Or is it an API change somewhere ? I run pygtk from ubuntu feisty (2.18.0) and gimmie trunk.

Here is a patch that solve the problem for me :
Index: gimmie_gmail.py
===================================================================
--- gimmie_gmail.py     (révision 396)
+++ gimmie_gmail.py     (copie de travail)
@@ -136,7 +136,7 @@
                                                   gnomekeyring.ITEM_GENERIC_SECRET,
                                                   "Gimmie Gmail account information",
                                                   dict(), ";".join(secret), True)
-            gconf_bridge.set("gmail_keyring_token", token)
+            gconf_bridge.set("gmail_keyring_token", int(token))
             self.emit("changed")
         except gnomekeyring.Error:
             print " !!! Unable to securely store GMail account details"
Comment 1 H. 2007-09-16 11:38:05 UTC
Created attachment 95673 [details] [review]
make GMail keyring working

don't know why it shouldn't get into SVN :-)
Comment 2 H. 2007-09-16 11:41:11 UTC
Thanks for taking the time to report this bug. The patch worked for me so i made an attachment with the patch file.

But in order for the patch to work it is necessary to install the latest python-libgmail (took the cvs).

So, if you want GMail access you python-libgmail from CVS:

cvs -d:pserver:anonymous@libgmail.cvs.sourceforge.net:/cvsroot/libgmail login
cvs -z3 -d:pserver:anonymous@libgmail.cvs.sourceforge.net:/cvsroot/libgmail co -P libgmail
cd libgmail
sudo python setup.py install
Comment 3 Alex Graveley 2007-09-28 02:21:06 UTC
Fixed in SVN.  Thanks!
Comment 4 Alex Graveley 2007-10-06 02:39:54 UTC
I'll be uploading the latest SVN of libgmail soon.