Home | Trees | Index | Help |
|
---|
Package nevow :: Module rend :: Class ConfigurableMixin |
|
object
--+
|
ConfigurableMixin
Fragment
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)
Method Summary | |
---|---|
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.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
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.Configurable...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Method Details |
---|
getBinding(self, ctx, name)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. |
getBindingNames(self, ctx)Expose bind_* methods and attributes on this class. |
getDefault(self, forBinding)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. |
postForm(self, ctx, bindingName, args)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. |
Class Variable Details |
---|
__implemented__
|
__providedBy__
|
__provides__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Jan 24 20:46:22 2007 | http://epydoc.sf.net |