test update
This commit is contained in:
parent
1f0ce2d7da
commit
d0a0fe6189
2 changed files with 20 additions and 13 deletions
src
|
@ -5,7 +5,7 @@ import os
|
|||
from tox import Tox
|
||||
from toxcore_enums_and_consts import *
|
||||
from ctypes import *
|
||||
from util import curr_time, log
|
||||
from util import curr_time, log, Singleton
|
||||
|
||||
|
||||
class ProfileHelper(object):
|
||||
|
@ -153,10 +153,9 @@ class Friend(Contact):
|
|||
return self._number
|
||||
|
||||
number = property(get_number)
|
||||
# TODO: check if setNumber needed
|
||||
|
||||
|
||||
class Profile(Contact):
|
||||
class Profile(Contact, Singleton):
|
||||
"""
|
||||
Profile of current toxygen user. Contains friends list, tox instance, list of messages
|
||||
"""
|
||||
|
@ -180,10 +179,6 @@ class Profile(Contact):
|
|||
self.set_status_message(tox.self_get_status_message().encode('utf-8'))
|
||||
self.filtration(self.show_online)
|
||||
|
||||
@staticmethod
|
||||
def get_instance():
|
||||
return Profile._instance
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
# Edit current user's data
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue