def getURL(self): if (self.use_username and self.username): return '/user/' + self.id + "/" + slugifyTitle(self.username) if (self.id and self.first_name and self.last_name): return '/user/' + self.id + "/" + slugifyTitle(self.first_name + " " + self.last_name) return "/"
def getResultsURL(self): if (self.id and self.question): return '/reckoning/results/' + self.id + "/" + slugifyTitle(self.question) return None
def getURL(self): if (self.id and self.title): return '/content/' + self.id + "/" + slugifyTitle(self.title) return None
def getURL(self): if (self.reckoner_id and self.first_name): return '/user/' + self.reckoner_id + "/" + slugifyTitle(self.first_name + " " + self.last_name) return None