projects
/
python-purple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52e4bd7
)
Fixing function set_options
author
Ragner Magalhaes
<ragner.magalhaes@openbossa.org>
Tue, 2 Dec 2008 20:56:50 +0000
(20:56 +0000)
committer
Anderson Briglia
<anderson.briglia@openbossa.org>
Sat, 28 Feb 2009 21:11:15 +0000
(17:11 -0400)
Fixing functions set_options to use account tuple as param
Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1378
596f6dd7
-e928-0410-a184-
9e12fd12cf7e
plugin.pyx
patch
|
blob
|
history
diff --git
a/plugin.pyx
b/plugin.pyx
index
f9b05d6
..
2b4b8b2
100644
(file)
--- a/
plugin.pyx
+++ b/
plugin.pyx
@@
-132,7
+132,8
@@
cdef class Plugin:
return po
- def set_options(self, id, username, po):
+ def set_options(self, acc, po):
+ #FIXME: account
''' @param id The protocol's id '''
''' @param username The account's username '''
''' @param po Dictionary {'setting type': str|int|bool value, ...} '''
@@
-151,7
+152,7
@@
cdef class Plugin:
c_account = NULL
- c_account = account.c_purple_accounts_find(username, id)
+ c_account = account.c_purple_accounts_find(acc[0], acc[1])
if c_account == NULL:
# FIXME: Message error or call a error handler
return False