Пример #1
0
    def update(self):
        if not self.isValid():
            return False

        Repo.destroy(Game, self)
        Repo.create(Game, self)
        return True
Пример #2
0
    def update(self):
        if not self.isValid():
            return False

        Repo.destroy(Game, self)
        Repo.create(Game, self)
        return True
Пример #3
0
    def update(self):
        brand = Brand.find_by("id", self.id)
        if not self.isValid():
            return False

        Repo.destroy(Brand, self)
        Repo.create(Brand, self)
        return True
Пример #4
0
 def delete(self):
     return Repo.destroy(Game, self)
Пример #5
0
 def delete(self):
     return Repo.destroy(Brand, self)
Пример #6
0
 def delete(self):
     return Repo.destroy(Game, self)