def __unicode__(self):
        """Unicode value."""
        if self.vtype == 'counters':
            r = self.collator.lookup(self.vtype,
                                     (self.vname, self.vstyle),
                                     self.el_id)
        else:
            r = self.collator.lookup(self.vtype,
                                     self.vname,
                                     self.el_id)
        if not isinstance(r, basestring):
            r = str(r)
        if isinstance(r, bytes):
            r = r.decode('utf-8')
        return r
def __unicode__ ( self ) : if self . vtype == 'counters' : r = self . collator . lookup ( self . vtype , ( self . vname , self . vstyle ) , self . el_id ) else : r = self . collator . lookup ( self . vtype , self . vname , self . el_id ) if not isinstance ( r , basestring ) : r = str ( r ) if isinstance ( r , bytes ) : r = r . decode ( 'utf-8' ) return r
Unicode value.