__init__(self,
name,
request,
group=None,
encoder=None,
dep=None,
dep_value=None,
dep_values=[],
dep_compare='==')
(Constructor)
The basic building block. Can contain primitives, sizers, checksums
or other blocks.
-
- Parameters:
name -
Name of the new block
(type=String)
request -
Request this block belongs to
(type=s_request)
group -
(Optional, def=None) Name of group to associate this block
with
(type=String)
encoder -
(Optional, def=None) Optional pointer to a function to pass
rendered data to prior to return
(type=Function Pointer)
dep -
(Optional, def=None) Optional primitive whose specific value
this block is dependant on
(type=String)
dep_value -
(Optional, def=None) Value that field "dep" must
contain for block to be rendered
(type=Mixed)
dep_values -
(Optional, def=[]) Values that field "dep" may
contain for block to be rendered
(type=List of Mixed Types)
dep_compare -
(Optional, def="==") Comparison method to apply to
dependency (==, !=, >, >=, <, <=)
(type=String)
|