from model.rights import MyRights
from model.rights import InternalRights
from model.users import Users
class Model:
def __init__(self, connection, translator, user_id = 0, superuser = False):
self.connection = connection
self.server = self.connection.server
self.internal_rights = InternalRights(self.connection, user_id, superuser)
self.myrights = MyRights(self.internal_rights)
self.translator = translator
self.users = Users(self)