Changeset 7003
- Timestamp:
- 01/06/08 16:20:39 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/gdal/datasource.py
r6686 r7003 68 68 # Registering all the drivers, this needs to be done 69 69 # _before_ we try to open up a data source. 70 if not get_driver_count() and not register_all(): 71 raise OGRException('Could not register all the OGR data source drivers!') 70 if not get_driver_count(): register_all() 72 71 73 72 if isinstance(ds_input, basestring): django/branches/gis/django/contrib/gis/gdal/driver.py
r6686 r7003 57 57 "Attempts to register all the data source drivers." 58 58 # Only register all if the driver count is 0 (or else all drivers 59 # will be registered over and over again) 60 if not self.driver_count and not register_all(): 61 raise OGRException('Could not register all the OGR data source drivers!') 59 # will be registered over and over again) 60 if not self.driver_count: register_all() 62 61 63 62 # Driver properties django/branches/gis/django/contrib/gis/gdal/prototypes/generation.py
r6686 r7003 104 104 func.restype = c_int 105 105 func.errcheck = check_errcode 106 else: 107 func.restype = None 108 106 109 return func 107 110
