Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/cms/bin/test_server.py

Issue 4817131468226560: Added site_url template variable in order to help generating pages that require a full absolute URL (Closed)
Patch Set: Created Feb. 4, 2014, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sitescripts/cms/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/cms/bin/test_server.py
===================================================================
--- a/sitescripts/cms/bin/test_server.py
+++ b/sitescripts/cms/bin/test_server.py
@@ -49,7 +49,7 @@
locale, page = path.split("/", 1)
for format in converters.iterkeys():
if source.has_page(page, format):
- return process_page(source, locale, page, format).encode("utf-8")
+ return process_page(source, locale, page, format, "http://127.0.0.1:5000").encode("utf-8")
if source.has_localizable_file(locale, page):
return source.read_localizable_file(locale, page)
« no previous file with comments | « no previous file | sitescripts/cms/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld