Class n.r.Page(Fragment, ConfigurableFactory, ChildLookupMixin):

Part of nevow.rend View Source View In Hierarchy

Known subclasses: nevow.athena.LivePage, nevow.canvas.Canvas, nevow.dirlist.DirectoryLister, nevow.livepage.LivePage, nevow.livetest.ChildXPath, nevow.livetest.TestTests, nevow.livetrial.runner.TestFrameworkRoot, nevow.vhost.NameVirtualHost, nevow.vhost.VirtualHostList

Implements interfaces: nevow.inevow.IResource

A page is the main Nevow resource and renders a document loaded via the document factory (docFactory).

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
530 Method renderHTTP Render a request
571 Method rememberStuff Undocumented
575 Method renderString Render this page outside of the context of a web request, returning
595 Method renderSynchronously Render this page synchronously, returning a string result immediately.
615 Method child_ When addSlash is True, a page rendered at a url with no
627 Method webFormPost Accept a web form post, either redisplaying the original form (with
687 Method onPostSuccess Undocumented
695 Method onPostFailure Undocumented

Inherited from Fragment:

Line # Kind Name Docs
377 Method __init__ Undocumented
384 Method get Return the data
387 Method rend Turn this instance into stan suitable for displaying it in a web page.
432 Method remember Remember an object for an interface on new PageContexts which are

Inherited from DataFactory (via Fragment):

Line # Kind Name Docs
120 Method child Return a conceptual child; an attribute, or a key,

Inherited from RenderFactory (via Fragment):

Line # Kind Name Docs
60 Method renderer Return a renderer with the given name.

Inherited from MacroFactory (via Fragment):

Line # Kind Name Docs
90 Method macro Return a macro with the given name.

Inherited from ConfigurableMixin (via Fragment):

Line # Kind Name Docs
193 Method getBindingNames Expose bind_* methods and attributes on this class.
200 Method getBinding Massage bind_* methods and attributes into an
223 Method getDefault Get a default value for a given binding. If the
235 Method postForm Accept a form post to the given bindingName.

Inherited from ConfigurableFactory:

Line # Kind Name Docs
263 Method locateConfigurable formless.webform.renderForms calls locateConfigurable on the IConfigurableFactory
276 Method configurable_ Configurable factory for use when self is a configurable;
302 Method configurable_original Configurable factory for use when self.original is a configurable;

Inherited from ChildLookupMixin:

Line # Kind Name Docs
456 Method locateChild Locate a child page of this one. ctx is a
497 Method childFactory Used by locateChild to return children which are generated
509 Method putChild Undocumented

Inherited from FreeformChildMixin (via ChildLookupMixin):

Line # Kind Name Docs
168 Method child_freeform_hand Undocumented
Line # Kind Name Docs
377 Method __init__ Undocumented
120 Method child Return a conceptual child; an attribute, or a key,
615 Method child_ When addSlash is True, a page rendered at a url with no
168 Method child_freeform_hand Undocumented
497 Method childFactory Used by locateChild to return children which are generated
276 Method configurable_ Configurable factory for use when self is a configurable;
302 Method configurable_original Configurable factory for use when self.original is a configurable;
384 Method get Return the data
200 Method getBinding Massage bind_* methods and attributes into an
193 Method getBindingNames Expose bind_* methods and attributes on this class.
223 Method getDefault Get a default value for a given binding. If the
456 Method locateChild Locate a child page of this one. ctx is a
263 Method locateConfigurable formless.webform.renderForms calls locateConfigurable on the IConfigurableFactory
90 Method macro Return a macro with the given name.
695 Method onPostFailure Undocumented
687 Method onPostSuccess Undocumented
235 Method postForm Accept a form post to the given bindingName.
509 Method putChild Undocumented
432 Method remember Remember an object for an interface on new PageContexts which are
571 Method rememberStuff Undocumented
387 Method rend Turn this instance into stan suitable for displaying it in a web page.
60 Method renderer Return a renderer with the given name.
530 Method renderHTTP Render a request
575 Method renderString Render this page outside of the context of a web request, returning
595 Method renderSynchronously Render this page synchronously, returning a string result immediately.
627 Method webFormPost Accept a web form post, either redisplaying the original form (with
def renderHTTP(self, ctx): (source)
Render a request
def rememberStuff(self, ctx): (source)
Undocumented
def renderString(self, ctx=None): (source)

Render this page outside of the context of a web request, returning a Deferred which will result in a string.

If twisted is not installed, this method will return a string result immediately, and this method is equivalent to renderSynchronously.
def renderSynchronously(self, ctx=None): (source)
Render this page synchronously, returning a string result immediately. Raise an exception if a Deferred is required to complete the rendering process.
def child_(self, ctx): (source)
When addSlash is True, a page rendered at a url with no trailing slash and a page rendered at a url with a trailing slash will be identical. addSlash is useful for the root resource of a site or directory-like resources.
def webFormPost(self, request, res, configurable, ctx, bindingName, args): (source)

Accept a web form post, either redisplaying the original form (with errors) if validation fails, or redirecting to the appropriate location after the post succeeds. This hook exists specifically for formless.

New in 0.5, _nevow_carryover_ is only used if an autocallable method returns a result that needs to be carried over.

New in 0.5, autocallables may return a nevow.url.URL or URLOverlay instance rather than setting IRedirectAfterPost on the request.

New in 0.5, autocallables may return a Page instance to have that Page instance rendered at the post target URL with no redirects at all. Useful for multi-step wizards.
def onPostSuccess(self, result, request, ctx, bindingName, redirectAfterPost): (source)
Undocumented
def onPostFailure(self, reason, request, ctx, bindingName, redirectAfterPost): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.