A Perforce form object.
A form consists of a collection of named fields, each with a
particular type and format. The form object handles parsing and
formatting of Perforce forms to/from Python values.
The field values are accessed using dictionary notation. ie.
form['FieldName']
The field attributes are accessed using attribute notation. ie.
|
__init__(self,
specdef,
data)
Construct a Form object from the specdef and form data. |
|
|
|
|
|
__setattr__(self,
fieldName,
value)
Setting of field details is not allowed. |
|
|
|
__delattr__(self,
fieldName)
Deleting field details is not allowed. |
|
|
|
__getitem__(self,
fieldName)
Return the value of a particular field. |
|
|
|
__setitem__(self,
fieldName,
value)
Set the value of a particular field. |
|
|
|
__delitem__(self,
fieldName)
Clear the value of a particular field. |
|
|
|
__str__(self)
Format the form's values as a Perforce form. |
|
|
|
__contains__(self,
fieldName)
Query whether a particular field exists in this form. |
|
|
int
|
__len__(self)
Query the number of fields in this form. |
|
|
|
__iter__(self)
Iterate over the names of the fields in this form. |
|
|
Inherited from object :
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__
|