Home | Trees | Indices | Help |
|
---|
|
object --+ | Spec
A Perforce form specification.
A form specification is a collection of field specifictaions that are used to parse and format Perforce text-based forms.
Spec objects
can be treated as Python dict
-like objects that map from the
field name to the field's SpecElem.
| spec = Spec(specdef) | for fieldName in spec: | specElem = spec[fieldName] | assert specElem.tag == fieldNameIf the
specdef
parameter passed to the constructor is a
unicode
string then all string operations will be performed
using unicode
strings. Otherwise all string operations will
be performed using str
strings.Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
|
|
|
Note:
If the values of any fields in See Also: parse |
Parse a form into a python dictionary using this form specification. Each field that has a value in theform will have a
corresponding value populated in the returned dictionary.
See Also: format |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sun Aug 05 12:30:13 2007 | http://epydoc.sourceforge.net |