Class n.r.ConfigurableMixin(object):

Part of nevow.rend View Source View In Hierarchy

Known subclasses: nevow.rend.Fragment

Implements interfaces: formless.iformless.IConfigurable

A sane IConfigurable implementation for Fragment and Page.
Methods starting with bind_ automatically expose corresponding
method names. bind_* should return an IBinding (PropertyBinding
or MethodBinding), or, as a shortcut for MethodBinding, a list of
twoples like this:

def bind_foo(self, ctx):
    return [('argName', String()), ('anotherArg', Integer())]

def foo(self, argName, anotherArg):
    assert isinstance(argName, str)
    assert isinstance(anotherArg, int)
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.
def getBindingNames(self, ctx): (source)
Expose bind_* methods and attributes on this class.
def getBinding(self, ctx, name): (source)
Massage bind_* methods and attributes into an IBinding. The bind_* method or attribute can either already implement IBinding or be a list of twoples which will be massaged into a MethodBinding as described in the ConfigurableMixin class docstring.
def getDefault(self, forBinding): (source)
Get a default value for a given binding. If the binding is a Property, get the current value of that property off self. If not, simply return forBinding.default.
def postForm(self, ctx, bindingName, args): (source)

Accept a form post to the given bindingName. The post arguments are given in args.

This will invoke the IInputProcessor for the binding with the given name. If it succeeds, the property will be modified or the method will have been called. If it fails, a ValidateError exception will be raised.
API Documentation for Nevow, generated by pydoctor.