parameters: (self)
return_statement: return self.empty_html_result
docstring: Returns an HTML representation of the Interval, using a css class
          called interval_X, with X being the interval index.
  
          An empty value will have a class of no_interval.
  
          The span will also have a class named after the subject to make
          multiple intervals available in a panel.
  
          @return: An HTML SPAN element, in the format: '<span class="interval_X X">1,000</span>'
docstring_summary: Returns an HTML representation of the Interval, using a css class
          called interval_X, with X being the interval index.
docstring_tokens: Returns an HTML representation of the Interval using a css class called interval_X with X being the interval index .
function: def html(self):
          """
          Returns an HTML representation of the Interval, using a css class
          called interval_X, with X being the interval index.
  
          An empty value will have a class of no_interval.
  
          The span will also have a class named after the subject to make
          multiple intervals available in a panel.
  
          @return: An HTML SPAN element, in the format: '<span class="interval_X X">1,000</span>'
          """
          # Get the name of the subject
          if not self.result is None and 'value' in self.result:
              if 'index' in self.result and 'subject' in self.result:
                  interval = self.result['index']
                  interval_class = "interval_%d" % interval if interval >= 0 else 'no_interval'
                  t = '<span class="{{ class }} {{ result.subject }}">' \
                      '{{ result.value|floatformat:0 }}</span>'
                  c = {'class': interval_class}
                  return self.template(t, c)
          return self.empty_html_result
function_tokens: def html ( self ) : # Get the name of the subject if not self . result is None and 'value' in self . result : if 'index' in self . result and 'subject' in self . result : interval = self . result [ 'index' ] interval_class = "interval_%d" % interval if interval >= 0 else 'no_interval' t = '<span class="{{ class }} {{ result.subject }}">' '{{ result.value|floatformat:0 }}</span>' c = { 'class' : interval_class } return self . template ( t , c ) return self . empty_html_result