Blame model/base.py

b838e2
b838e2
class ModelBase:
b838e2
  def __init__(self, model):
b838e2
    self.model = model
b838e2
    self.server = self.model.server
b838e2
    self.connection = self.model.connection
b838e2
    self.rights = self.model.internal_rights
b838e2
    self.translator = self.model.translator
b838e2
b838e2
  def translate(self, text):
b838e2
    return self.translator.translate(text)
b838e2
  def t(self, text):
b838e2
    return self.translate(text)