def get_path(self): if not self.path: self.path = Link.get_or_add('/?m=' + self.id).path self.put() return self.path
def link(self): if not self.path: self.path = Link.get_or_add('/?m=' + self.id).path self.put() return constants.SHARE_URL + self.path