Package DocumentTemplate :: Module cDocumentTemplate :: Class TemplateDict
[show private | hide private]
[frames | no frames]

Type TemplateDict

object --+    
         |    
      Base --+
             |
            TemplateDict


TemplateDict -- Combine multiple mapping objects for lookup
Method Summary
  __init__()
__init__() -- Create a new empty multi-mapping
  __call__(x, ...)
x.__call__(...) <==> x(...)
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getitem__(x, y)
x.__getitem__(y) <==> x[y]
  __len__(x)
x.__len__() <==> len(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  getitem(key, call)
Normally, callable objects that can be called without arguments are called during retrieval.
  has_key(key)
has_key(key) -- Test whether the mapping has the given key
  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
  SecurityCalledByExecutable(md)
Return a boolean value indicating if this context was called by an executable
  SecurityCheckPermission(md, permission, object)
Check whether the security context allows the given permission on the given object.
  SecurityGetUser(md)
Gen the current authenticated user
  SecurityValidate(md, inst, parent, name, value)
Validate access.
  _pop()
_pop() -- Remove and return the last data source added
  _push(mapping_object)
_push(mapping_object) -- Add a data source
Inherited from Base: __getnewargs__, __getstate__, __reduce__, __setstate__
Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variable Summary
int __allow_access_to_unprotected_subobjects__ = 1                                                                     
NotBindable apply = <DocumentTemplate.DT_Util.NotBindable instance a...
classobj ArithmeticError = exceptions.ArithmeticError
classobj AssertionError = exceptions.AssertionError
classobj AttributeError = exceptions.AttributeError
type basestring = __builtin__.basestring
type bool = __builtin__.bool
type complex = __builtin__.complex
classobj DateTime = DateTime.DateTime.DateTime
NotBindable delattr = <DocumentTemplate.DT_Util.NotBindable instance...
classobj DeprecationWarning = exceptions.DeprecationWarning
GuardedDictType dict = <AccessControl.ZopeGuards.GuardedDictType instanc...
NotBindable enumerate = <DocumentTemplate.DT_Util.NotBindable instan...
classobj EnvironmentError = exceptions.EnvironmentError
classobj EOFError = exceptions.EOFError
classobj Exception = exceptions.Exception
bool False = False
NotBindable filter = <DocumentTemplate.DT_Util.NotBindable instance ...
type float = __builtin__.float
classobj FloatingPointError = exceptions.FloatingPointError
classobj FutureWarning = exceptions.FutureWarning
NotBindable hasattr = <DocumentTemplate.DT_Util.NotBindable instance...
classobj ImportError = exceptions.ImportError
classobj IndentationError = exceptions.IndentationError
classobj IndexError = exceptions.IndexError
type int = __builtin__.int
classobj IOError = exceptions.IOError
NotBindable iter = <DocumentTemplate.DT_Util.NotBindable instance at...
classobj KeyboardInterrupt = exceptions.KeyboardInterrupt
classobj KeyError = exceptions.KeyError
GuardedListType list = <AccessControl.ZopeGuards.GuardedListType instanc...
type long = __builtin__.long
classobj LookupError = exceptions.LookupError
NotBindable map = <DocumentTemplate.DT_Util.NotBindable instance at ...
NotBindable max = <DocumentTemplate.DT_Util.NotBindable instance at ...
classobj MemoryError = exceptions.MemoryError
NotBindable min = <DocumentTemplate.DT_Util.NotBindable instance at ...
classobj NameError = exceptions.NameError
NoneType None = None                                                                  
classobj NotImplementedError = exceptions.NotImplementedError
classobj OSError = exceptions.OSError
classobj OverflowError = exceptions.OverflowError
classobj OverflowWarning = exceptions.OverflowWarning
classobj PendingDeprecationWarning = exceptions.PendingDeprecationWarning
NotBindable reduce = <DocumentTemplate.DT_Util.NotBindable instance ...
classobj ReferenceError = exceptions.ReferenceError
NotBindable reorder = <DocumentTemplate.DT_Util.NotBindable instance...
classobj RuntimeError = exceptions.RuntimeError
classobj RuntimeWarning = exceptions.RuntimeWarning
NotBindable same_type = <DocumentTemplate.DT_Util.NotBindable instan...
NotBindable setattr = <DocumentTemplate.DT_Util.NotBindable instance...
classobj StandardError = exceptions.StandardError
classobj StopIteration = exceptions.StopIteration
type str = __builtin__.str
NotBindable sum = <DocumentTemplate.DT_Util.NotBindable instance at ...
classobj SyntaxError = exceptions.SyntaxError
classobj SyntaxWarning = exceptions.SyntaxWarning
classobj SystemError = exceptions.SystemError
classobj SystemExit = exceptions.SystemExit
classobj TabError = exceptions.TabError
NotBindable test = <DocumentTemplate.DT_Util.NotBindable instance at...
bool True = True
type tuple = __builtin__.tuple
classobj TypeError = exceptions.TypeError
classobj UnboundLocalError = exceptions.UnboundLocalError
type unicode = __builtin__.unicode
classobj UnicodeDecodeError = exceptions.UnicodeDecodeError
classobj UnicodeEncodeError = exceptions.UnicodeEncodeError
classobj UnicodeError = exceptions.UnicodeError
classobj UnicodeTranslateError = exceptions.UnicodeTranslateError
classobj UserWarning = exceptions.UserWarning
classobj ValueError = exceptions.ValueError
classobj Warning = exceptions.Warning
type xrange = __builtin__.xrange
classobj ZeroDivisionError = exceptions.ZeroDivisionError

Method Details

__init__()
(Constructor)

__init__() -- Create a new empty multi-mapping
Overrides:
__builtin__.object.__init__

__call__(x, ...)
(Call operator)

x.__call__(...) <==> x(...)
Returns:
x(...)

__delattr__(...)

x.__delattr__('name') <==> del x.name
Overrides:
__builtin__.object.__delattr__

__getattribute__(...)

x.__getattribute__('name') <==> x.name
Overrides:
ExtensionClass.Base.__getattribute__

__getitem__(x, y)
(Indexing operator)

x.__getitem__(y) <==> x[y]
Returns:
x[y]

__len__(x)
(Length operator)

x.__len__() <==> len(x)
Returns:
len(x)

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
ExtensionClass.Base.__new__

__setattr__(...)

x.__setattr__('name', value) <==> x.name = value
Overrides:
__builtin__.object.__setattr__

getitem(key, call=...)

Normally, callable objects that can be called without arguments are called during retrieval. This can be suppressed by providing a second argument that is false.

has_key(key)

has_key(key) -- Test whether the mapping has the given key

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

SecurityCalledByExecutable(md)

Return a boolean value indicating if this context was called by an executable

SecurityCheckPermission(md, permission, object)

Check whether the security context allows the given permission on the given object.

Arguments:

permission -- A permission name

object -- The object being accessed according to the permission

SecurityGetUser(md)

Gen the current authenticated user

SecurityValidate(md, inst, parent, name, value)

Validate access.

Arguments:

accessed -- the object that was being accessed

container -- the object the value was found in

name -- The name used to access the value

value -- The value retrieved though the access.

The arguments may be provided as keyword arguments. Some of these arguments may be ommitted, however, the policy may reject access in some cases when arguments are ommitted. It is best to provide all the values possible.

_pop()

_pop() -- Remove and return the last data source added

_push(mapping_object)

_push(mapping_object) -- Add a data source

Class Variable Details

__allow_access_to_unprotected_subobjects__

Type:
int
Value:
1                                                                     

apply

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11f6be8>           

delattr

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11f6c38>           

dict

Type:
GuardedDictType
Value:
<AccessControl.ZopeGuards.GuardedDictType instance at 0x1354c10>       

enumerate

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x79bf08>            

False

Type:
bool
Value:
False                                                                  

filter

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1354ee0>           

hasattr

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1170440>           

iter

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1170490>           

list

Type:
GuardedListType
Value:
<AccessControl.ZopeGuards.GuardedListType instance at 0x1354be8>       

map

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1170468>           

max

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1354f58>           

min

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11703f0>           

None

Type:
NoneType
Value:
None                                                                  

reduce

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1170760>           

reorder

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1170418>           

same_type

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11f6c10>           

setattr

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11703a0>           

sum

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11f6dc8>           

test

Type:
NotBindable
Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x11fe1e8>           

True

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net