Skip to content

Commit

Permalink
Make DTML format functions available directly, with sane names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Jan 4, 2001
1 parent a1e1b8f commit 7fd43d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,19 @@
"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

Expand Down

0 comments on commit 7fd43d8

Please sign in to comment.