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. |
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.