Home | Trees | Index | Help |
|
---|
Package nevow :: Module rend :: Class Fragment |
|
object
--+ |ConfigurableMixin
--+ |object
--+ | | |DataFactory
--+ |object
--+ | | |MacroFactory
--+ |object
--+ | | |RenderFactory
--+ | Fragment
Page
A fragment is a renderer that can be embedded in a stan document and hooks its template (from the docFactory) up to its data_ and render_ methods, i.e. it remembers itself as the IRendererFactory and IContainer.
Fragment primarily serves as the base for Page, Nevow's web resource, but it can be used for more complex rendering. For instance, a fragment might be used to encapsulate the rendering of a complex piece of data where the template is read from disk and contains standard renderers (sequence, mapping etc) and/or custom render methods.Method Summary | |
---|---|
__init__(self,
original,
docFactory)
| |
get(self,
context)
| |
Remember an object for an interface on new PageContexts which are constructed around this Page. | |
rememberStuff(self,
ctx)
| |
rend(self,
context,
data)
| |
Inherited from DataFactory | |
| |
Inherited from RenderFactory | |
| |
| |
| |
| |
| |
Return a renderer with the given name. | |
Inherited from MacroFactory | |
Return a macro with the given name. | |
Inherited from ConfigurableMixin | |
Massage bind_* methods and attributes into an IBinding. | |
Expose bind_* methods and attributes on this class. | |
Get a default value for a given binding. | |
Accept a form post to the given bindingName. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Implements |
__implemented__ = <implementedBy nevow.rend.Fragment>
|
_implementsTuple |
__implements__ = (<MetaInterface nevow.inevow.IRenderer>...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
NoneType |
docFactory = None |
NoneType |
original = None |
Inherited from DataFactory | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
remember(self, obj, inter=None)Remember an object for an interface on new PageContexts which are constructed around this Page. Whenever this Page is involved in object traversal in the future, all objects will be visible to .locate() calls at the level of a PageContext wrapped around this Page and all contexts below it. This does not affect existing Context instances. |
Class Variable Details |
---|
__implemented__
|
__provides__
|
docFactory
|
original
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 3 13:51:13 2006 | http://epydoc.sf.net |