A mixin with renderers useful throughout the data center.
Rendering the sidebar --
<body n:render="withsidebar">. This will only work if the renderer
has a service attribute that's enough of a service (i.e., carries meta
and knows how to generate URLs).
|
data_meta(self,
metaKey)
returns the value for the meta key metaName on this service. |
source code
|
|
|
render_meta(self,
ctx,
data)
replaces a meta key with a plain text rendering of the metadata
in the service. |
source code
|
|
|
render_metahtml(self,
ctx,
data)
replaces a meta key with an html rendering of the metadata in
the serivce. |
source code
|
|
|
render_datameta(self,
ctx,
data)
replaces the meta key in the contents with the corresponding
meta key's HTML rendering. |
source code
|
|
|
render_ifmeta(self,
metaName,
propagate=True)
renders its children if there is metadata for metaName. |
source code
|
|
|
render_ifownmeta(self,
metaName)
renders its children if there is metadata for metaName in
the service itself. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data_rd(self,
rdId)
returns the RD referenced in the body (or None if the RD is not there) |
source code
|
|
|
|
Inherited from common.CommonRenderers :
__providedBy__ ,
render_commonhead ,
render_getconfig ,
render_rootlink ,
render_unicode ,
render_urlescape
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|