MCPcopy
hub / github.com/django/django / check_fid_range

Method check_fid_range

django/contrib/gis/utils/layermapping.py:180–190  ·  view source on GitHub ↗

Check the `fid_range` keyword.

(self, fid_range)

Source from the content-addressed store, hash-verified

178
179 # Checking routines used during initialization.
180 def check_fid_range(self, fid_range):
181 "Check the `fid_range` keyword."
182 if fid_range:
183 if isinstance(fid_range, (tuple, list)):
184 return slice(*fid_range)
185 elif isinstance(fid_range, slice):
186 return fid_range
187 else:
188 raise TypeError
189 else:
190 return None
191
192 def check_layer(self):
193 """

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected