def configurable_(self, context): """Configurable factory for use when self is a configurable; aka it implements IConfigurable or one or more TypedInterface subclasses. Usage: >>> class IFoo(TypedInterface): ... def bar(): pass ... bar = autocallable(bar) ... >>> class Foo(Page): ... implements(IFoo) ... ... def bar(): ... print "bar called through the web!" ... ... def render_forms(self, ctx, data): ... return renderForms() # or renderForms('') ... ... docFactory = stan(render_forms). """ if [ x for x in providedBy(self) if issubclass(x, annotate.TypedInterface) ]: warnings.warn( "[0.5] Subclassing TypedInterface to declare annotations is deprecated. Please provide bind_* methods on your Page or Fragment subclass instead.", DeprecationWarning) from formless import configurable return configurable.TypedInterfaceConfigurable(self) return self
def configurable_formBuilder(self, ctx): return configurable.TypedInterfaceConfigurable(self)
def configurable_staticSettings(self, ctx): return configurable.TypedInterfaceConfigurable(self)