projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverted kdur creation following the kdu modeling before SOL006
[osm/NBI.git]
/
osm_nbi
/
base_topic.py
diff --git
a/osm_nbi/base_topic.py
b/osm_nbi/base_topic.py
index
9572409
..
bbe6337
100644
(file)
--- a/
osm_nbi/base_topic.py
+++ b/
osm_nbi/base_topic.py
@@
-147,7
+147,7
@@
class BaseTopic:
if count >= quota:
name = proj["name"]
raise ValidationError("quota ({}={}) exceeded for project {} ({})".format(quota_name, quota, name, pid),
if count >= quota:
name = proj["name"]
raise ValidationError("quota ({}={}) exceeded for project {} ({})".format(quota_name, quota, name, pid),
- http_code=HTTPStatus.UN
AUTHORIZED
)
+ http_code=HTTPStatus.UN
PROCESSABLE_ENTITY
)
def _validate_input_new(self, input, force=False):
"""
def _validate_input_new(self, input, force=False):
"""
@@
-308,6
+308,7
@@
class BaseTopic:
def _send_msg(self, action, content, not_send_msg=None):
if self.topic_msg and not_send_msg is not False:
def _send_msg(self, action, content, not_send_msg=None):
if self.topic_msg and not_send_msg is not False:
+ content = content.copy()
content.pop("_admin", None)
if isinstance(not_send_msg, list):
not_send_msg.append((self.topic_msg, action, content))
content.pop("_admin", None)
if isinstance(not_send_msg, list):
not_send_msg.append((self.topic_msg, action, content))