Index: cms/bin/test_server.py |
=================================================================== |
--- a/cms/bin/test_server.py |
+++ b/cms/bin/test_server.py |
@@ -62,17 +62,18 @@ |
locale, page = path, '' |
default_page = source.read_config().get('general', 'defaultpage') |
alternative_page = '/'.join([page, default_page]).lstrip('/') |
for format in converters.iterkeys(): |
for p in (page, alternative_page): |
if source.has_page(p, format): |
- return (p, process_page(source, locale, p, format, 'http://%s:%d' % (address, port))) |
+ site_url = 'http://{}:{}'.format(address, port) |
+ return (p, process_page(source, locale, p, format, site_url)) |
if source.has_localizable_file(locale, page): |
return (page, source.read_localizable_file(locale, page)) |
return (None, None) |
def has_conflicting_pages(page): |
pages = [p for p, _ in source.list_pages()] |