Ejemplo n.º 1
0
    def get_entitytype_name(self):
        """Return the entity type name from the first Distinguished Name."""
        if self.rows:
            first_dn = self.rows[0][0]

            return entitytype_name_from_dn(first_dn)
Ejemplo n.º 2
0
 def get_entitytype(self, cursor):
     return EntityType.get_by_name(cursor, entitytype_name_from_dn(self.dn))