[llvm-commits] [zorg] r146228 - /zorg/trunk/lnt/lnt/server/ui/views.py

Daniel Dunbar daniel at zuster.org
Thu Dec 8 17:38:53 PST 2011


Author: ddunbar
Date: Thu Dec  8 19:38:53 2011
New Revision: 146228

URL: http://llvm.org/viewvc/llvm-project?rev=146228&view=rev
Log:
lnt.server.ui.views: Use url_for instead of the config defined base URL when
running in a browser -- this makes working with local instances nicer.

Modified:
    zorg/trunk/lnt/lnt/server/ui/views.py

Modified: zorg/trunk/lnt/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/views.py?rev=146228&r1=146227&r2=146228&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/views.py (original)
+++ zorg/trunk/lnt/lnt/server/ui/views.py Thu Dec  8 19:38:53 2011
@@ -230,8 +230,7 @@
 
     show_graphs = bool(request.args.get('show_graphs'))
     _, _, html_report = NTEmailReport.getSimpleReport(
-        None, db, run, str("%s/db_%s/") % (current_app.old_config.zorgURL,
-                                           g.db_name),
+        None, db, run, url_for('index', db_name=g.db_name),
         True, True, show_graphs = show_graphs)
 
     return make_response(html_report)
@@ -241,8 +240,7 @@
     db, run, run_summary, compare_to = get_simple_run_info(tag, id)
 
     _, text_report, _ = NTEmailReport.getSimpleReport(
-        None, db, run, str("%s/db_%s/") % (current_app.old_config.zorgURL,
-                                           g.db_name),
+        None, db, run, url_for('index', db_name=g.db_name),
         True, True)
 
     response = make_response(text_report)
@@ -298,8 +296,7 @@
         test_filter_re = None
 
     _, text_report, html_report = NTEmailReport.getSimpleReport(
-        None, db, run, str("%s/db_%s/") % (current_app.old_config.zorgURL,
-                                           g.db_name),
+        None, db, run, url_for('index', db_name=g.db_name),
         True, True, only_html_body = True, show_graphs = show_graphs,
         num_comparison_runs = num_comparison_runs)
 





More information about the llvm-commits mailing list