'Get label of the given fieldname'

def get_label(self, fieldname):

    df = self.get_field(fieldname)
    if df:
        label = df.label
    else:
        label = ({u'name': _(u'ID'), u'owner': _(u'Created    By'), u'modified_by': _(u'Modified    By'), u'creation': _(u'Created    On'), u'modified': _(u'Last    Modified    On')}.get(fieldname) or _(u'No    Label'))
    return label
