Imported modules
|
|
from BaseRequest import BaseRequest
from Converters import get_converter
from HTTPResponse import HTTPResponse
from cgi import FieldStorage
from maybe_lock import allocate_lock
import os
import regex
from string import lower, atoi, rfind, split, strip, join, upper, find
import sys
from urllib import quote, unquote, splittype, splitport
|
Functions
|
|
html_quote
parse_cookie
sane_environment
str_field
|
|
html_quote
|
html_quote ( value, character_entities=((( '&' ), '&' ), (( "<" ), '<' ), (( ">" ), '>' ), (( '"' ), '"' ) ) )
This is duplicated from DocumentTemplate.DT_Util to
prevent a dependency on the DocumentTemplate package.
Some folks still use the ZPublisher package as a
standalone publisher without DocumentTemplate.
|
|
parse_cookie
|
parse_cookie (
text,
result=None,
qparmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)="\([^"]*\)\"' '\([\0- ]*[;,]\)?[\0- ]*\)' ),
parmre=regex.compile( '\([\0- ]*' '\([^\0- ;,=\"]+\)=\([^\0- ;,\"]*\)' '\([\0- ]*[;,]\)?[\0- ]*\)' ),
acquire=parse_cookie_lock.acquire,
release=parse_cookie_lock.release,
)
|
|
sane_environment
|
sane_environment ( env )
|
|
str_field
|
str_field ( v )
|
Classes
|
|
|
|