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.
19 lines
479 B
19 lines
479 B
import model, view |
|
|
|
class Controller(object): |
|
"""docstring for Controller.""" |
|
def __init__(self, model, view): |
|
super(Controller, self).__init__() |
|
self.model = model |
|
self.view = view |
|
|
|
def update(self, *args): |
|
self.model.added(*args) |
|
self.view.updated(args) |
|
|
|
def expunge(self, *args): |
|
self.model.removed(*args) |
|
self.view.deleted(list(args)) |
|
|
|
def display(self): |
|
self.view.displayed(self.model.var)
|
|
|