Exemple #1
0
 def render_page(self, errors=None):
     ''' Render page with extra arguments '''
     if errors is not None and not isinstance(errors, list):
         errors = [str(errors), ]
     self.render('admin/upgrades/swat.html',
         pending_bribes=Swat.all_pending(),
         in_progress_bribes=Swat.all_in_progress(),
         completed_bribes=Swat.all_completed(),
         errors=errors,
     )
 def render_page(self, errors=None):
     ''' Render page with extra arguments '''
     if errors is not None and not isinstance(errors, list):
         errors = [
             str(errors),
         ]
     self.render(
         'admin/upgrades/swat.html',
         pending_bribes=Swat.all_pending(),
         in_progress_bribes=Swat.all_in_progress(),
         completed_bribes=Swat.all_completed(),
         errors=errors,
     )