Re: Extension that adds a tab on the preferences dialogue?



Hi,

Le mardi 09 ao�05 �6:58 -0400, Adam Hooper a �it :
> Here's another fun session with the Python Console (I love this thing!)
> 
> >>> import epiphany
> >>> shell = epiphany.ephy_shell_get_default() # an EphyShell
> >>> es = shell.get_embed_single() # an EphyEmbedSingle
> >>> db = es.list_passwords() # a list of EphyPasswordInfo's
> >>> matches = filter(lambda p: p.host == 'http://slashdot.org', db)
> >>> matches
> [<EphyPasswordInfo at 0x87dce78>]
> >>> dir(matches[0])
> ['__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__',
> '__gtype__', '__hash__', '__init__', '__new__', '__reduce__',
> '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'copy', 'free',
> 'host', 'password', 'username']
> >>> matches[0].host
> 'http://slashdot.org'
> >>> matches[0].username
> 'noda132'
> >>> matches[0].password
> 
> 
> Unfortunately, that password comes back as None (Python's version of
> NULL). I don't know why, maybe another developer can enlighten me?

Simple, because it's not stored in the EphyPasswordInfo in
embed/mozilla/mozilla-embed-single.cpp:impl_list_passwords(); it's set
to NULL. We can fix that if you want :)

Regards,
	Christian




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