Class P4.Spec
Description
Utility class providing easy access to the attributes of the fields in a Helix Core Server form.
Only valid field names may be set in a P4.Spec
object. Only the field name is validated, not the content. Attributes
provide easy access to the fields.
Instance Attributes
spec._<fieldname> -> string
Contains the value associated with the field named <fieldname>.
spec.comment -> dict
Contains an array containing the comments associated with the spec object.
Class Methods
P4.Spec.new( dict ) -> P4.Spec
Constructs a new P4.Spec
object given an array of
valid fieldnames.
spec.permitted_fields() -> dict
Returns a dictionary containing the names of fields that are valid in this spec object. This does not imply that values for all of these fields are actually set in this object, merely that you may choose to set values for any of these fields if you want to.
Instance Methods
None.