Commit 1a7fdfd5 authored by Evan Simpson's avatar Evan Simpson

Make DTML format functions available directly, with sane names.

parent 09fe8885
......@@ -90,13 +90,19 @@ Scripts. It can be accessed from Python with the statement
"import Products.PythonScripts.standard"
"""
__version__='$Revision: 1.3 $'[11:-2]
__version__='$Revision: 1.4 $'[11:-2]
from AccessControl import ModuleSecurityInfo, getSecurityManager
security = ModuleSecurityInfo()
security.declarePublic('special_formats')
from DocumentTemplate.DT_Var import special_formats
security.declarePublic('special_formats', 'whole_dollars',
'dollars_and_cents', 'structured_text',
'sql_quote', 'html_quote', 'url_quote',
'url_quote_plus', 'newline_to_br',
'thousands_commas')
from DocumentTemplate.DT_Var import special_formats, \
whole_dollars, dollars_and_cents, structured_text, sql_quote, \
html_quote, url_quote, url_quote_plus, newline_to_br, thousands_commas
from Globals import HTML
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment