Package qm :: Package external :: Package DocumentTemplate :: Module pDocumentTemplate :: Class TemplateDict
[show private | hide private]
[frames | no frames]

Class TemplateDict


Method Summary
  __init__(self)
  __call__(self, *args, **kw)
  __getitem__(self, key, call, simple, isFunctionType)
number abs(number)
Return the absolute value of the argument.
  attr(self, inst, name, md)
character chr(i)
Return a string of one character with ordinal i; 0 <= i < 256.
(div, mod) divmod(x, y)
Return the tuple ((x-x%y)/y, x%y).
  getattr(md, inst, name, default)
  getitem(self, key, call, simple, isFunctionType)
  has_key(self, key)
  hasattr(md, inst, name)
integer hash(object)
Return a hash value for the object.
string hex(number)
Return the hexadecimal representation of an integer or long integer.
integer len(object)
Return the number of items of a sequence or mapping.
value max(sequence)
max(a, b, c, ...) -> value
value min(sequence)
min(a, b, c, ...) -> value
  namespace(self, **kw)
Create a tuple consisting of a single instance whose attributes are provided as keyword arguments.
string oct(number)
Return the octal representation of an integer or long integer.
integer ord(c)
Return the integer ordinal of a one-character string.
  pow(self, x, y, z)
  range(md, iFirst, *args)
  render(self, v)
Render an object in the way done by the 'name' attribute
  reorder(self, s, with, without)
floating point number round(number, ndigits)
Round a number to a given precision in decimal digits (default 0 digits).
  test(self, *args)

Class Variable Summary
type float = __builtin__.float
type int = __builtin__.int
int level = 0                                                                     
NoneType None = None                                                                  
type str = __builtin__.str

Method Details

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

Class Variable Details

level

Type:
int
Value:
0                                                                     

None

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Thu Sep 27 15:49:03 2007 http://epydoc.sf.net