MCPcopy
hub / github.com/django/django / get

Method get

django/contrib/gis/gdal/feature.py:106–113  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."

Callers 15

__init__Method · 0.45
get_contextMethod · 0.45
as_postgresqlMethod · 0.45
cleanMethod · 0.45
level_tagMethod · 0.45
_getMethod · 0.45
_getMethod · 0.45
add_georss_elementMethod · 0.45
ogrinfoFunction · 0.45
add_srs_entryFunction · 0.45
verify_fkMethod · 0.45
coord_transformMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected