summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2009-03-30 22:10:36 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2009-03-30 22:10:36 +0000
commit5ff1703f41b219af92c2eb604609fc0ee03416c4 (patch)
treeb20d854dff31ac5e6284f287c464cc50088028e0
parent3989a7ae1116aa7a4d961269aa2ae6a686308ef1 (diff)
Fixed #9130 -- Fixed typo in comment, thanks scel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/admin/widgets.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/django/contrib/gis/admin/widgets.py b/django/contrib/gis/admin/widgets.py
index 02e1764630..07263cbe80 100644
--- a/django/contrib/gis/admin/widgets.py
+++ b/django/contrib/gis/admin/widgets.py
@@ -21,7 +21,7 @@ class OpenLayersWidget(Textarea):
# Defaulting the WKT value to a blank string -- this
# will be tested in the JavaScript and the appropriate
- # interfaace will be constructed.
+ # interface will be constructed.
self.params['wkt'] = ''
# If a string reaches here (via a validation error on another
@@ -46,7 +46,7 @@ class OpenLayersWidget(Textarea):
# Transforming the geometry to the projection used on the
# OpenLayers map.
srid = self.params['srid']
- if value.srid != srid:
+ if value.srid != srid:
try:
ogr = value.ogr
ogr.transform(srid)
@@ -55,14 +55,14 @@ class OpenLayersWidget(Textarea):
wkt = ''
else:
wkt = value.wkt
-
+
# Setting the parameter WKT with that of the transformed
# geometry.
self.params['wkt'] = wkt
return loader.render_to_string(self.template, self.params,
context_instance=geo_context)
-
+
def map_options(self):
"Builds the map options hash for the OpenLayers template."
@@ -74,8 +74,8 @@ class OpenLayersWidget(Textarea):
# An array of the parameter name, the name of their OpenLayers
# counterpart, and the type of variable they are.
- map_types = [('srid', 'projection', 'srid'),
- ('display_srid', 'displayProjection', 'srid'),
+ map_types = [('srid', 'projection', 'srid'),
+ ('display_srid', 'displayProjection', 'srid'),
('units', 'units', str),
('max_resolution', 'maxResolution', float),
('max_extent', 'maxExtent', 'bounds'),