parameters: (self)
docstring: Renders the UI with the form.
docstring_summary: Renders the UI with the form.
docstring_tokens: Renders the UI with the form .
function: def get(self):
      """Renders the UI with the form."""
      def SheriffData(sheriff_entity):
        return {
            'url': sheriff_entity.url or '',
            'email': sheriff_entity.email or '',
            'patterns': '\n'.join(sorted(sheriff_entity.patterns)),
            'labels': ','.join(sorted(sheriff_entity.labels)),
            'internal_only': sheriff_entity.internal_only,
            'summarize': sheriff_entity.summarize,
            'stoppage_alert_delay': sheriff_entity.stoppage_alert_delay or 0,
        }
  
      sheriff_dicts = {entity.key.string_id(): SheriffData(entity)
                       for entity in sheriff.Sheriff.query()}
  
      self.RenderHtml('edit_sheriffs.html', {
          'sheriffs_json': json.dumps(sheriff_dicts),
          'sheriff_names': sorted(sheriff_dicts),
      })
function_tokens: def get ( self ) : def SheriffData ( sheriff_entity ) : return { 'url' : sheriff_entity . url or '' , 'email' : sheriff_entity . email or '' , 'patterns' : '\n' . join ( sorted ( sheriff_entity . patterns ) ) , 'labels' : ',' . join ( sorted ( sheriff_entity . labels ) ) , 'internal_only' : sheriff_entity . internal_only , 'summarize' : sheriff_entity . summarize , 'stoppage_alert_delay' : sheriff_entity . stoppage_alert_delay or 0 , } sheriff_dicts = { entity . key . string_id ( ) : SheriffData ( entity ) for entity in sheriff . Sheriff . query ( ) } self . RenderHtml ( 'edit_sheriffs.html' , { 'sheriffs_json' : json . dumps ( sheriff_dicts ) , 'sheriff_names' : sorted ( sheriff_dicts ) , } )