X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=protocol.pyx;h=b482e6e8beeee8c28af23d05f29e38405b905800;hp=e8d8999593ab6e0161ac35d9157759f1790a1a51;hb=fa83e5e05e62fa5c6707312d375b97195143e6b7;hpb=5d7c705f607003997a097b353d02483b57cb61b9 diff --git a/protocol.pyx b/protocol.pyx index e8d8999..b482e6e 100644 --- a/protocol.pyx +++ b/protocol.pyx @@ -29,14 +29,14 @@ cdef class Protocol: self.__account = account self.__protocol_id = protocol_id + cdef account.PurpleAccount *__account_get_structure(self): + return account.purple_accounts_find(self.__account.username, \ + self.__account.protocol_id) + def __get_protocol_id(self): return self.__protocol_id.protocol_id protocol_id = property(__get_protocol_id) - def __get_account(self): - return self.__account - account = property(__get_account) - def _set_protocol_id(self, protocol_id): account.purple_account_set_protocol_id( \ - self.__account._get_structure(), protocol_id) + self.__account_get_structure(), protocol_id)