projects
/
ais.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9435f
)
Added a couple of TODO
author
Jean-Michel Nirgal Vourgère
<jmv@nirgal.com>
Fri, 21 Jan 2011 11:34:26 +0000
(11:34 +0000)
committer
Jean-Michel Nirgal Vourgère
<jmv@nirgal.com>
Fri, 21 Jan 2011 11:34:26 +0000
(11:34 +0000)
bin/djais/views.py
patch
|
blob
|
history
diff --git
a/bin/djais/views.py
b/bin/djais/views.py
index 9ca918dc0944d423462e1ba62c89192e2be595ee..613e95cfdf0a1e67f3c23f0f1787310748308326 100644
(file)
--- a/
bin/djais/views.py
+++ b/
bin/djais/views.py
@@
-327,6
+327,7
@@
class VesselManualInputForm(forms.Form):
return int(sog*AIS_SOG_SCALE)
def clean_latitude(self):
+ #TODO: use ntools.clean_latitude
data = self.cleaned_data['latitude']
data = data.replace(u"''", u'"') # common mistake
data = data.replace(u' ', u'') # remove spaces
@@
-381,6
+382,7
@@
class VesselManualInputForm(forms.Form):
return int(data * AIS_LATLON_SCALE)
def clean_longitude(self):
+ #TODO: use ntools.clean_latitude
data = self.cleaned_data['longitude']
data = data.replace(u"''", u'"') # common mistake
data = data.replace(u' ', u'') # remove spaces