Skip to content
Snippets Groups Projects

F create link

Merged Henrik tom Wörden requested to merge f-create-link into dev
4 files
+ 29
9
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -58,6 +58,7 @@ from .guard import RETRIEVE, ProhibitedException
@@ -58,6 +58,7 @@ from .guard import RETRIEVE, ProhibitedException
from .guard import global_guard as guard
from .guard import global_guard as guard
from .serverside.helper import send_mail as main_send_mail
from .serverside.helper import send_mail as main_send_mail
from .suppressKnown import SuppressKnown
from .suppressKnown import SuppressKnown
 
from .utils import create_entity_link
logger = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
@@ -103,15 +104,8 @@ def apply_list_of_updates(to_be_updated, update_flags={},
@@ -103,15 +104,8 @@ def apply_list_of_updates(to_be_updated, update_flags={},
info = "UPDATE: updating the following entities\n"
info = "UPDATE: updating the following entities\n"
baseurl = db.configuration.get_config()["Connection"]["url"]
def make_clickable(txt, id):
return "<a href='{}/Entity/{}'>{}</a>".format(baseurl, id, txt)
for el in to_be_updated:
for el in to_be_updated:
info += str("\t" + make_clickable(el.name, el.id)
info += str("\t" + create_entity_link(el))
if el.name is not None
else "\t" + make_clickable(str(el.id), el.id))
info += "\n"
info += "\n"
logger.info(info)
logger.info(info)
Loading