def get_rdn(self, dn):
        """Get relative distinguished name.

        dn --- distinguished name
        """
        _len = dn.find(self.delimeter)
        if _len == -1:
            return dn
        else:
            return dn[:_len]
Get relative distinguished name.

        dn --- distinguished name
        
recipes/Python/576966_DnTree/recipe-576966.py