Package core :: Package data :: Package dc :: Module form :: Class form
[hide private]
[frames] | no frames]

Class form




This class represents a HTML form.


Author: Andres Riancho ( andres.riancho@gmail.com )

Instance Methods [hide private]
  __init__(self, init_val=(), strict=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  getAction(self)
  setAction(self, action)
  getMethod(self)
  setMethod(self, method)
  getFileVariables(self)
  addFileInput(self, attrs)
Adds a file input to the form
  __str__(self)
This method returns a string representation of the form Object.
  copy(self)
This method returns a copy of the form Object.
  addSubmit(self, name, value)
This is something I havent thought about ! <input type="submit" name="b0f" value="Submit Request">
  addInput(self, attrs)
Adds a input to the form
  getType(self, name)

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, init_val=(), strict=False)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: dataContainer.dataContainer.__init__

getAction(self)

 
Returns:
The form action.

setAction(self, action)

 
None

getMethod(self)

 
Returns:
The form method.

setMethod(self, method)

 
None

getFileVariables(self)

 
None

addFileInput(self, attrs)

 
Adds a file input to the form
Parameters:
  • attrs - attrs=[("class", "screen")]

__str__(self)
(Informal representation operator)

 
This method returns a string representation of the form Object.
Returns:
string representation of the form Object.
Overrides: dataContainer.dataContainer.__str__

copy(self)

 
This method returns a copy of the form Object.
Returns:
A copy of myself.
Overrides: dataContainer.dataContainer.copy

addSubmit(self, name, value)

 
This is something I havent thought about ! <input type="submit" name="b0f" value="Submit Request">

addInput(self, attrs)

 
Adds a input to the form
Parameters:
  • attrs - attrs=[("class", "screen")]

getType(self, name)

 
None