You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
494 B
22 lines
494 B
6 years ago
|
class View(object):
|
||
|
"""docstring for View."""
|
||
|
__instance = None
|
||
|
def __init__(self):
|
||
|
super(View, self).__init__()
|
||
|
if View.__instance !=None:
|
||
|
raise Exception('not a thing')
|
||
|
else:
|
||
|
View.__instance = self
|
||
|
|
||
|
@staticmethod
|
||
|
def updated(ls):
|
||
|
print(f'added {list(*ls)}')
|
||
|
|
||
|
@staticmethod
|
||
|
def deleted(ls):
|
||
|
print(f'deleted {list(ls)}')
|
||
|
|
||
|
@staticmethod
|
||
|
def displayed(ls):
|
||
|
print(f'contents {list(ls)}')
|