Esempio n. 1
0
 def _get_error(self, title, description = None, help = None):
     "Writes an error page with a given error."
     html = HtmlTextBuilder().text(title)
     if description:
         html.linebreak(2).text(description)
     if help:
         html.linebreak(2).text(help)
     
     return self._get_message(html)
Esempio n. 2
0
 def get(self):    
     index_message = HtmlTextBuilder().text('Are you looking for gigs?').linebreak(2)
     index_message.text('Write the name of the city and/or country where you want to party, or write a latitude and longitude (in this order), and then press the search button.').linebreak(2)
     index_message.text('Or simply press the geolocalized search button, and let geo-gig find the gigs near you.')
     
     self._get_message(index_message)