Esempio n. 1
0
 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 "/"
Esempio n. 2
0
 def getResultsURL(self):
     if (self.id and self.question):
         return '/reckoning/results/' + self.id + "/" + slugifyTitle(self.question)
     
     return None
Esempio n. 3
0
 def getURL(self):
     if (self.id and self.title):
         return '/content/' + self.id + "/" + slugifyTitle(self.title)
     
     return None
Esempio n. 4
0
 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