Index: cms/utils.py |
diff --git a/cms/utils.py b/cms/utils.py |
index 0c7b8bea7e44da7c7b776acf6c4830c4010d927d..d79255554aca6ac5507871bd2ba80e475e82996f 100644 |
--- a/cms/utils.py |
+++ b/cms/utils.py |
@@ -17,7 +17,8 @@ |
from cms.converters import converters, TemplateConverter |
-def get_page_params(source, locale, page, format=None, site_url_override=None): |
+def get_page_params(source, locale, page, format=None, site_url_override=None, |
+ record_default_strings=None): |
Wladimir Palant
2015/07/08 23:11:09
Nit: This should be record_default_string as the c
kzar
2015/07/11 19:21:18
Done.
|
# Guess page format if omitted, but default to Markdown for friendlier exceptions |
if format is None: |
for format in converters.iterkeys(): |
@@ -33,6 +34,7 @@ def get_page_params(source, locale, page, format=None, site_url_override=None): |
"page": page, |
"pagedata": source.read_page(page, format), |
"config": source.read_config(), |
+ "record_default_strings": record_default_strings, |
} |
localefile = page |
@@ -77,8 +79,10 @@ def get_page_params(source, locale, page, format=None, site_url_override=None): |
return params |
-def process_page(source, locale, page, format=None, site_url_override=None): |
+def process_page(source, locale, page, format=None, site_url_override=None, |
+ record_default_strings=None): |
return TemplateConverter( |
- get_page_params(source, locale, page, format, site_url_override), |
+ get_page_params(source, locale, page, format, |
+ site_url_override, record_default_strings), |
key="templatedata" |
)() |