original_docstring: Render the html for the widget.
docstring: Render the html for the widget.
docstring_tokens: Render the html for the widget .
code: def render(self, name, value, attrs=None):
          """Render the html for the widget."""
  
          if not isinstance(value, Recurrence):
              value = self.decompress(value)
  
          rendered_html = []
  
          for widget_name, widget in self.keyed_widgets.items():
  
              if widget_name in ('count', 'until'):
                  # This case is handled later
                  continue
  
              rendered_html.append(self.render_field(name=name, value=value,
                                          widget_name=widget_name,
                                          widget=widget,
                                          label=self.labels.get(widget_name)))
  
          # Here's where "count" and "until" get rendered
          ending_html = self.render_ending(name=name, value=value, attrs=attrs)
  
          try:
              # Try to put the ending options right after the  weekday
              rendered_html.insert(self.key_order.index('byweekday') + 1,
                                   ending_html)
          except:
              rendered_html.append(ending_html)
  
          all_widget_html = ''.join(rendered_html)
  
          return mark_safe('<div class="recurrence-widget {0}-recurrence">'
                           '{1}</div>'.format(name, all_widget_html))
code_tokens: def render ( self , name , value , attrs = None ) : if not isinstance ( value , Recurrence ) : value = self . decompress ( value ) rendered_html = [ ] for widget_name , widget in self . keyed_widgets . items ( ) : if widget_name in ( 'count' , 'until' ) : continue rendered_html . append ( self . render_field ( name = name , value = value , widget_name = widget_name , widget = widget , label = self . labels . get ( widget_name ) ) ) ending_html = self . render_ending ( name = name , value = value , attrs = attrs ) try : rendered_html . insert ( self . key_order . index ( 'byweekday' ) + 1 , ending_html ) except : rendered_html . append ( ending_html ) all_widget_html = '' . join ( rendered_html ) return mark_safe ( '<div class="recurrence-widget {0}-recurrence">' '{1}</div>' . format ( name , all_widget_html ) )
short_docstring: Render the html for the widget.
short_docstring_tokens: Render the html for the widget .
comment: """Render the html for the widget."""$SEP$# This case is handled later$SEP$# Here's where "count" and "until" get rendered$SEP$# Try to put the ending options right after the  weekday