'Get the syntax of an attribute type specified by name or OID'

def get_syntax(self, nameoroid):

    at_oid = self.getoid(AttributeType, nameoroid)
    try:
        at_obj = self.get_inheritedobj(AttributeType, at_oid)
    except KeyError:
        return None
    else:
        return at_obj.syntax
