def render_label(content, label_for=None, label_class=None, label_title=u''):
 attrs = {}
 if label_for:
  attrs[u'for'] = label_for
 if label_class:
  attrs[u'class'] = label_class
 if label_title:
  attrs[u'title'] = label_title
 return render_tag(u'label', attrs=attrs, content=content)

def render_label ( content , label_for = None , label_class = None , label_title = u'' ) : attrs = { } if label_for : attrs [ u'for' ] = label_for if label_class : attrs [ u'class' ] = label_class if label_title : attrs [ u'title' ] = label_title return render_tag ( u'label' , attrs = attrs , content = content )
render a label with content .