X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=account.pyx;h=d896dd05f558a1bdb5e4a1bd419637ca2fa670d5;hp=16e5dcd6169e7b959af67e83ed43ae3a9681eb7a;hb=fa83e5e05e62fa5c6707312d375b97195143e6b7;hpb=f43bb1fee1c9660e1e8f39640926a8ed2ad52715 diff --git a/account.pyx b/account.pyx index 16e5dcd..d896dd0 100644 --- a/account.pyx +++ b/account.pyx @@ -19,16 +19,16 @@ cimport purple -from protocol import Protocol - cdef class Account: """ Account class + @param core @param username @param protocol_id """ - def __init__(self, username, protocol_id): + def __init__(self, core, username, protocol_id): + self.__core = core self.__username = username self.__protocol = Protocol(self, protocol_id) @@ -63,6 +63,10 @@ cdef class Account: return None is_disconnected = property(__is_disconnected) + def __get_core(self): + return self.__core + core = property(__get_core) + def __get_exists(self): return self.__exists exists = property(__get_exists)