Return the value of the field, instead of an instance of the Field object. May take a string of the field name or a Field object as parameters.
(self, field)
| 104 | |
| 105 | # #### Feature Methods #### |
| 106 | def get(self, field): |
| 107 | """ |
| 108 | Return the value of the field, instead of an instance of the Field |
| 109 | object. May take a string of the field name or a Field object as |
| 110 | parameters. |
| 111 | """ |
| 112 | field_name = getattr(field, "name", field) |
| 113 | return self[field_name].value |
| 114 | |
| 115 | def index(self, field_name): |
| 116 | "Return the index of the given field name." |
no outgoing calls
no test coverage detected