l.a.w.o.RequestWidget(object) : class documentation

Part of lp.app.widgets.owner View In Hierarchy

Known subclasses: lp.app.widgets.owner.HiddenUserWidget

A widget that sets itself to a value calculated from request

This is a bit of a hack, but necessary. If we are using the Zope form generation machinery, then the only things that know about request are the Views (the AddView and the Widgets). It is easier to define a custom widget than to override the AddView

Method __init__ Undocumented
Method validate See zope.formlib.interfaces.IInputWidget
Method getInputValue See zope.formlib.interfaces.IInputWidget
Method applyChanges See zope.formlib.interfaces.IInputWidget
Method setPrefix See zope.formlib.interfaces.IWidget
Method hasInput See zope.formlib.interfaces.IInputWidget
Method __call__ See zope.formlib.interfaces.IBrowserWidget
Method hidden See zope.formlib.interfaces.IBrowserWidget
Method error See zope.formlib.interfaces.IBrowserWidget
def __init__(self, context, request):
Undocumented
def validate(self):
See zope.formlib.interfaces.IInputWidget
def getInputValue(self):
See zope.formlib.interfaces.IInputWidget
def applyChanges(self, content):
See zope.formlib.interfaces.IInputWidget
def setPrefix(self, prefix):
See zope.formlib.interfaces.IWidget
def hasInput(self):
See zope.formlib.interfaces.IInputWidget
def __call__(self):
See zope.formlib.interfaces.IBrowserWidget
def hidden(self):
See zope.formlib.interfaces.IBrowserWidget
def error(self):
See zope.formlib.interfaces.IBrowserWidget
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.