test update

This commit is contained in:
ingvar1995 2016-03-06 15:44:52 +03:00
parent 1f0ce2d7da
commit d0a0fe6189
2 changed files with 20 additions and 13 deletions

View file

@ -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
# -----------------------------------------------------------------------------------------------------------------