l.s.w.i.IBrowserFormNG(Interface) : interface documentation

Part of lp.services.webapp.interfaces View In Hierarchy

Interface to manipulate submitted form data.
Method __contains__ Return True if a field named name was submitted.
Method __iter__ Return an iterator over the submitted field names.
Method getOne Return the value of the field name.
Method getAll Return the list of values submitted under field name.
def __contains__(name):
Return True if a field named name was submitted.
def __iter__():
Return an iterator over the submitted field names.
def getOne(name, default=None):
Return the value of the field name.

If the field wasn't submitted return the default value. If more than one value was submitted, raises UnexpectedFormData.

def getAll(name, default=None):
Return the list of values submitted under field name.

If the field wasn't submitted return the default value. (If default is None, an empty list will be returned. It is an error to use something else than None or a list as default value.

This method should always return a list, if only one value was submitted, it will be returned in a list.

API Documentation for Launchpad, generated by pydoctor at 2019-09-23 00:00:04.