Package ldaptor :: Package apps :: Package webui :: Module move :: Class OLD_SearchForm
[show private | hide private]
[frames | no frames]

Class OLD_SearchForm

Widget --+    
         |    
      Form --+
             |
            OLD_SearchForm

Known Subclasses:
MoveForm

Method Summary
  __init__(self, baseObject, serviceLocationOverride, searchFields)
  format(self, form, write, request)
I display an HTML FORM according to the result of self.getFormFields.
  getFormFields(self, request, kws)
  process(self, write, request, submit, **kw)
Override me: I process a form.
  _searchTrailer(self, filtText)
    Inherited from Form
  display(self, request)
Display the form.
  formatError(self, error)
Format an error message.
  getFormID(self)
Override me: I disambiguate between multiple forms of the same type.
  shouldProcess(self, request)
  tryAgain(self, err, req)
Utility method for re-drawing the form with an error message.
  _displayFormat(self, request, form)
  _displayProcess(self, request, form)
  _doProcess(self, form, write, request)
(internal) Prepare arguments for self.process.
    Inherited from Widget
  getTitle(self, request)

Class Variable Summary
list formFields = [('string', 'Advanced', 'ldapfilter', ''), ...
classobj searchFactory = ldaptor.apps.webui.move.OLD_DoSearchFactory
list submitNames = ['Search']
    Inherited from Form
str actionURI = ''
int formAcceptExtraArgs = 0                                                                     
dict formGen = {'checkbox': <function htmlFor_checkbox at 0x4...
dict formParse = {'int': <type 'int'>, 'float': <type 'float'...
    Inherited from Widget
NoneType title = None                                                                  

Method Details

format(self, form, write, request)

I display an HTML FORM according to the result of self.getFormFields.
Overrides:
twisted.web.widgets.Form.format (inherited documentation)

process(self, write, request, submit, **kw)

Override me: I process a form.

I will only be called when the correct form input data to process this form has been received.

I take a variable number of arguments, beginning with 'write', 'request', and 'submit'. 'write' is a callable object that will append a string to the response, 'request' is a twisted.web.request.Request instance, and 'submit' is the name of the submit action taken.

The remainder of my arguments must be correctly named. They will each be named after one of the
Overrides:
twisted.web.widgets.Form.process (inherited documentation)

Class Variable Details

formFields

Type:
list
Value:
[('string', 'Advanced', 'ldapfilter', ''),
 ('radio',
  'Search depth',
  'scope',
  (('wholeSubtree', 'whole subtree', 1),
   ('singleLevel', 'single level', 0),
   ('baseObject', 'baseobject', 0)))]                                  

submitNames

Type:
list
Value:
['Search']                                                             

Generated by Epydoc 2.0 on Fri Mar 12 17:21:13 2004 http://epydoc.sf.net