def delete(self, starship): Repository.delete(self, (self.schema + str(starship.id)))
def __init__(self): self.schema="starship:" Repository.__init__(self)
def find(self, starship_id): return Repository.find(self, (self.schema + str(starship_id)))
def put(self, starship): Repository.put(self, (self.schema + str(starship.id)), starship)
def delete(self, planet): Repository.delete(self, (self.schema + str(planet.id)))
def __init__(self): self.schema = "planet:" Repository.__init__(self)
def find_all(self): return Repository.find_all(self, self.schema)
def put(self, planet): Repository.put(self, (self.schema + str(planet.id)), planet)
def find(self, planet_id): return Repository.find(self, (self.schema + str(planet_id)))
def __init__(self): self.schema = "commander:" Repository.__init__(self)
def delete(self, commander): Repository.delete(self, (self.schema + str(commander.id)))
def put(self, commander): Repository.put(self, (self.schema + str(commander.id)), commander)
def find(self, commander_id): return Repository.find(self, (self.schema + str(commander_id)))