X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fbase_topic.py;h=9688f60c3411a176c27cfe881db595655f3e3606;hp=20d54bbb138eebdf62b344c7bec3cc4cf046c5aa;hb=982da4e03c39e679919c1cb36fc00e9b8bd5d450;hpb=bdebce96965945c2ce86d80c60c17091c1a7fd42 diff --git a/osm_nbi/base_topic.py b/osm_nbi/base_topic.py index 20d54bb..9688f60 100644 --- a/osm_nbi/base_topic.py +++ b/osm_nbi/base_topic.py @@ -18,7 +18,7 @@ from uuid import uuid4 from http import HTTPStatus from time import time from osm_common.dbbase import deep_update_rfc7396 -from validation import validate_input, ValidationError, is_valid_uuid +from osm_nbi.validation import validate_input, ValidationError, is_valid_uuid __author__ = "Alfonso Tierno " @@ -27,7 +27,7 @@ class EngineException(Exception): def __init__(self, message, http_code=HTTPStatus.BAD_REQUEST): self.http_code = http_code - Exception.__init__(self, message) + super(Exception, self).__init__(message) def get_iterable(input_var): @@ -61,8 +61,7 @@ class BaseTopic: alt_id_field = { "projects": "name", "users": "username", - "roles": "name", - "roles_operations": "name" + "roles": "name" } def __init__(self, db, fs, msg):