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