projects
/
python-purple
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding function get_types to ProxyInfo class
[python-purple]
/
account.pyx
diff --git
a/account.pyx
b/account.pyx
index
e45288d
..
e562013
100644
(file)
--- a/
account.pyx
+++ b/
account.pyx
@@
-305,6
+305,15
@@
cdef class Account:
iter = iter.next
return buddies
iter = iter.next
return buddies
+ def new(self, username, protocol_id):
+ cdef account.PurpleAccount *c_account
+ c_account = account.c_purple_account_new(username, protocol_id)
+
+ if c_account == NULL:
+ return None
+
+ return (username, protocol_id)
+
def get_all(self):
cdef glib.GList *iter
cdef account.PurpleAccount *acc
def get_all(self):
cdef glib.GList *iter
cdef account.PurpleAccount *acc