X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fhtml_out.py;h=857d954cf5f0bc9346bbf5dd9d9331f360b45935;hp=7a079a433b1bcf5e31b3c08cbf3fb6cc3d41e101;hb=cb83c941ebdf6a8807ffe3b1c3346c61e085b0bf;hpb=0ffaa99c277d76ca49fdbe4d4b6b9df4d7484857 diff --git a/osm_nbi/html_out.py b/osm_nbi/html_out.py index 7a079a4..857d954 100644 --- a/osm_nbi/html_out.py +++ b/osm_nbi/html_out.py @@ -17,7 +17,8 @@ html_start = """
- + ( {} ) VNFDs NSDs @@ -25,7 +26,8 @@ html_start = """ USERs PROJECTs TOKENs - VIMs + VIMs + SDNs logout
@@ -37,13 +39,12 @@ html_body = """ html_end = """ - + """ html_body_error = "

Error
{}

" - html_auth2 = """ @@ -91,7 +92,7 @@ html_upload_body = """ html_nslcmop_body = """ nslcm operations -VNFRS +VNFRS

@@ -133,7 +134,8 @@ def format(data, request, response, session): if "Location" in response.headers: body += ' show '.format(response.headers["Location"]) else: - body += ' '.format(request.path_info) + body += ' '\ + .format(request.path_info) if request.path_info.startswith("/nslcm/v1/ns_instances_content/") or \ request.path_info.startswith("/nslcm/v1/ns_instances/"): _id = request.path_info[request.path_info.rfind("/")+1:] @@ -151,8 +153,6 @@ def format(data, request, response, session): if session.get("project_id"): user_text += ", project: {}".format(session.get("project_id")) return html_start.format(user_text) + body + html_end - #yaml.safe_dump(data, explicit_start=True, indent=4, default_flow_style=False) + # yaml.safe_dump(data, explicit_start=True, indent=4, default_flow_style=False) # tags=False, # encoding='utf-8', allow_unicode=True) - -