def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def draw_path(self,c,container):
		c.path(self.center[0],self.center[1],container.center[0],container.center[1])