Table of Contents

Module: DT_Var Zope-2.2.1-src/lib/python/DocumentTemplate/DT_Var.py

Imported modules   
from DT_Util import parse_params, name_param, html_quote, str
import regex
from string import find, split, join, atoi, rfind
import sys
from urllib import quote, quote_plus
Functions   
dollars_and_cents
dollars_and_cents_with_commas
len_comma
len_format
newline_to_br
spacify
sql_quote
structured_text
thousands_commas
url_quote
url_quote_plus
whole_dollars
whole_dollars_with_commas
  dollars_and_cents 
dollars_and_cents (
        v,
        name='(Unknown name)',
        md={},
        )

  dollars_and_cents_with_commas 
dollars_and_cents_with_commas (
        v,
        name='(Unknown name)',
        md={},
        )

  len_comma 
len_comma (
        v,
        name='(Unknown name)',
        md={},
        )

  len_format 
len_format (
        v,
        name='(Unknown name)',
        md={},
        )

  newline_to_br 
newline_to_br (
        v,
        name='(Unknown name)',
        md={},
        )

  spacify 
spacify ( val )

  sql_quote 
sql_quote (
        v,
        name='(Unknown name)',
        md={},
        )

Quote single quotes in a string by doubling them.

This is needed to securely insert values into sql string literals in templates that generate sql.

  structured_text 
structured_text (
        v,
        name='(Unknown name)',
        md={},
        )

  thousands_commas 
thousands_commas (
        v,
        name='(Unknown name)',
        md={},
        thou=regex.compile( "\([0-9]\)\([0-9][0-9][0-9]\([,.]\|$\)\)" ),
        )

  url_quote 
url_quote (
        v,
        name='(Unknown name)',
        md={},
        )

  url_quote_plus 
url_quote_plus (
        v,
        name='(Unknown name)',
        md={},
        )

  whole_dollars 
whole_dollars (
        v,
        name='(Unknown name)',
        md={},
        )

  whole_dollars_with_commas 
whole_dollars_with_commas (
        v,
        name='(Unknown name)',
        md={},
        )

Classes   
Call
Comment

Comments

Var

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6