def get_category(data, parent, nsmap): return Category.objects(parent=parent, uid=get_identifier(data, nsmap)).first()
def get_category(parent, uid): return Category.objects(parent=parent, uid=uid).first()
def get_category(data, parent, nsmap): return Category.objects(parent=parent, uid=get_identifier(data, nsmap)).first()
def get_category(parent, uid): return Category.objects(parent=parent, uid=uid).first()