Skip to content
Snippets Groups Projects
Commit e3fe0343 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

STY: ws and import order

parent 6f267ed3
No related branches found
No related tags found
1 merge request!33MAINT: change arguments of create_user
...@@ -26,16 +26,12 @@ ...@@ -26,16 +26,12 @@
"""missing docstring.""" """missing docstring."""
from lxml import etree
from caosdb.common.utils import xml2str from caosdb.common.utils import xml2str
from caosdb.connection.connection import get_connection from caosdb.connection.connection import get_connection
from caosdb.exceptions import (HTTPClientError, from caosdb.exceptions import (EntityDoesNotExistError, HTTPClientError,
HTTPForbiddenError, HTTPForbiddenError, HTTPResourceNotFoundError,
HTTPResourceNotFoundError, ServerConfigurationException)
EntityDoesNotExistError, from lxml import etree
ServerConfigurationException,
)
def set_server_property(key, value): def set_server_property(key, value):
...@@ -163,6 +159,7 @@ def _update_user(name, realm=None, password=None, status=None, ...@@ -163,6 +159,7 @@ def _update_user(name, realm=None, password=None, status=None,
except HTTPClientError as e: except HTTPClientError as e:
if e.status == 409: if e.status == 409:
e.msg = "Entity does not exist." e.msg = "Entity does not exist."
if e.status == 422: if e.status == 422:
e.msg = """Maybe the password does not match the required standard? e.msg = """Maybe the password does not match the required standard?
The current requirements are: The current requirements are:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment