khard/address_book.py
def get_short_uid(self, uid):
        """Get the shortend UID for the given UID.

        :param uid: the full UID to shorten
        :type uid: str
        :returns: the shortend uid or the empty string
        :rtype: str
        """
        if uid:
            short_uids = self.get_short_uid_dict()
            for length_of_uid in range(len(uid), 0, -1):
                if short_uids.get(uid[:length_of_uid]) is not None:
                    return uid[:length_of_uid]
        return ""
def get_short_uid(self, uid):
        if uid:
            short_uids = self.get_short_uid_dict()
            for length_of_uid in range(len(uid), 0, -1):
                if short_uids.get(uid[:length_of_uid]) is not None:
                    return uid[:length_of_uid]
        return ""
def get_short_uid ( self , uid ) : if uid : short_uids = self . get_short_uid_dict ( ) for length_of_uid in range ( len ( uid ) , 0 , - 1 ) : if short_uids . get ( uid [ : length_of_uid ] ) is not None : return uid [ : length_of_uid ] return ""
Get the shortend UID for the given UID.

        :param uid: the full UID to shorten
        :type uid: str
        :returns: the shortend uid or the empty string
        :rtype: str
Get the shortend UID for the given UID .