Home | Trees | Index | Help |
---|
|
DTML Utilities
$Id: DT_Util.py 1007 2007-02-10 01:07:28Z stefan $
|
|||
str | str(object) -> string | ||
Eval | |||
ListType | list() -> new list list(sequence) -> new list initialized from sequence's items |
|
|||
html_quote(v, name='(Unknown name)', md={}, character_entities=((('&'),'&'), (('<'),'<'), (('>'),'>'), (('"'),'"'))) | |||
int_param(params, md, name, default=0, st=<type 'str'>) | |||
careful_getattr(md, inst, name, default=_marker) | |||
careful_hasattr(md, inst, name) | |||
careful_getitem(md, mapping, key) | |||
careful_getslice(md, seq, *indexes) | |||
careful_range(md, iFirst, *args) | |||
careful_pow(self, x, y, z) | |||
test(self, *args) | |||
obsolete_attr(self, inst, name, md) | |||
namespace(self,
**kw)
Create a tuple consisting of a single instance whose attributes are provided as keyword arguments. |
|||
render(self,
v)
Render an object in the way done by the 'name' attribute |
|||
reorder(self, s, with=None, without=()) | |||
name_param(params, tag='', expr=0, attr='name', default_unnamed=1) | |||
parse_params(text,
result=None,
tag='',
unparmre=re.compile('([\000- ]*([^\000- ="]+))'),
qunparmre=re.compile('([\000- ]*("[^"]*"))'),
parmre=re.compile('([\000- ]*([^\000- ="]+)=([^\000- ="]+))'),
qparmre=re.compile('([\000- ]*([^\000- ="]+)="([^"]*)")'),
**parms)
Parse tag parameters |
|
|||
ParseError | |||
ValidationError | |||
_marker | |||
d | |||
expr_globals | |||
Expr_doc | |||
name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parse tag parameters The format of tag parameters consists of 1 or more parameter specifications separated by whitespace. Each specification consists of an unnamed and unquoted value, a valueless name, or a name-value pair. A name-value pair consists of a name and a quoted or unquoted value separated by an '='. The input parameter, text, gives the text to be parsed. The keyword parameters give valid parameter names and default values. If a specification is not a name-value pair and it is not the first specification and it is a valid parameter name, then it is treated as a name-value pair with a value as given in the keyword argument. Otherwise, if it is not a name-value pair, it is treated as an unnamed value. The data are parsed into a dictionary mapping names to values. Unnamed values are mapped from the name '""'. Only one value may be given for a name and there may be only one unnamed value. |
|
ParseError
|
ValidationError
|
_marker
|
d
|
expr_globals
|
Expr_doc
|
name
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:29 2007 | http://epydoc.sf.net |