You can also browse the complete source file or the generated documentation.
## FormKit, Yet Another Webware Form processor ## Copyright (C) 2002, 2003 dAlchemy, Inc: www.dalchemy.com ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## or visit www.gnu.org class Form: def __init__( self, action="", method="post", validators = [], languageStandard='XHTML', encoding=DEFAULT_ENCODING, decoding_strict=1 ) ## @@ TODO: ## - consider making the uploadEncoding thing automatic somehow ## @@ TODO - consider implementing a switch to tell the form whether to include a cancel ## self._showCancelButton = None ## Processing ## def process( self, inputData ) ## Note about _validated... ## Building, modifying ## def seed( self, data={ } ) def addField( self, field ) def removeAllFields( self ) def removeField( self, fieldName ) def reset( self ) def addFormValidator( self, validator ) ## Set things ## def setDOMID( self, string='' ) def setMethod( self, method ) def setAction( self, target ) def setEncoding( self, encoding=DEFAULT_ENCODING ) def setTabOrder( self, order=None ) ## Access ## def isSuccessful( self ) def __getattr__( self, fieldName ) def field( self, fieldName ) def fields( self ) def defaults( self ) def rawValues( self ) def value( self, fieldName ) def values( self ) def tag( self, fieldName ) def error(self) def errors( self ) ## Output ## def startTags( self ) def endTags( self ) def dump( self )