Package tdi :: Package tools :: Package htmlform :: Module _interfaces :: Class PreProcInterface
[frames] | no frames]

Class PreProcInterface

source code

object --+
         |
        PreProcInterface

Interface for node processors
Instance Methods
tuple
__call__(self, method, node, kwargs)
Pre process the node
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__call__(self, method, node, kwargs)
(Call operator)

source code 
Pre process the node
Parameters:
  • method (str) - The name of the method (like 'text' or 'checkbox')
  • node (tdi.nodetree.Node) - The node to process
  • kwargs (dict) - The arguments of the HTMLForm method
Returns: tuple
node and kwargs again (they do not need to be the same as input). Keys appearing in kwargs override the original parameters then. ((node, kwargs))