Re: python / tinymail.Account.set_pass_func



I'll let Mark Doffman answer this, he's working on the Python bindings

On Sun, 2008-07-13 at 03:09 +0530, Shikhar wrote:
> Shikhar wrote:
> > Shikhar wrote:
> >> I would appreciate some guidance about how to make use of 
> >> tinymail.Account.set_pass_func()
> >>
> >> What would the (Python) signature of the function be?
> >>
> >
> > Ah, looking at the tmut source code helped me figure out PasswordGetter
> >
> Not actually, it turns out. I have spent a lot of time figuring this out 
> so it would be great if someone could help me out. I don't have 
> experience with GObject so that could be tripping me, or maybe it has 
> something to do with the bindings
> 
>  >>> from tinymail.camel import *
>  >>> from tinymail.uigtk import GtkPasswordDialog
>  >>>
>  >>> def get_pass(aid, prompt):
> ...     pwdgetter = GtkPasswordDialog()
> ...     return pwdgetter.get_password(aid, prompt)
> ...
>  >>> acc = CamelTransportAccount()
>  >>> acc.set_id('tny_test')
>  >>> acc.set_pass_func(get_pass)
> __main__:1: Warning: invalid cast from `TnyCamelTransportAccount' to 
> `TnyList'
> Segmentation fault
> 
> 
> (Same error even if the account has a Camel 
> session/username/password/hostname/port/name etc. attributes set)
> _______________________________________________
> tinymail-devel-list mailing list
> tinymail-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/tinymail-devel-list
> 
-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]