Permalink
Browse files

fixed more pylint and pep8 warnings

  • Loading branch information...
1 parent aa06c7c commit 16d5202e086112cc38141e5601f72e6f2b22a39a @trey0 trey0 committed Sep 20, 2011
Showing with 4 additions and 6 deletions.
  1. +1 −1 geocamLens/SearchSimple.py
  2. +2 −2 geocamLens/ViewKml.py
  3. +0 −1 geocamLens/ViewLensAbstract.py
  4. +1 −2 geocamLens/models.py
@@ -14,6 +14,6 @@ def getAllFeatures(self):
return PointFeature.objects.filter(processed=True)
fields = ('name', 'user', 'notes', 'tags', 'uuid')
- timeField = 'timestamp' # FIX: handle features with non-zero time extent
+ timeField = 'timestamp' # TODO: handle features with non-zero time extent
# pairs (user-facing-field-name, django-field-name)
fieldAliases = (('user', 'author__username'),)
@@ -56,7 +56,7 @@ def kmlGetAllFeaturesFolder(self, request, searchQuery, newUtime):
allFeatures = self.search.getAllFeatures()
features = self.search.searchFeatures(allFeatures, searchQuery)
if 0:
- # FIX: update models so this filtering statement can work
+ # TODO: update models so this filtering statement can work
features = features.filter(mtime__lte=newUtime,
deleted=False)
featuresKml = '\n'.join([f.getKml(request) for f in features])
@@ -118,7 +118,7 @@ def kmlGetInitialKml(self, request, sessionId):
return result
def kmlGetUpdateKml(self, request, sessionId):
- # FIX: implement me -- can use old version of geocam for reference
+ # TODO: implement me -- can use old version of geocam for reference
return ''
def kmlGetSessionResponse(self, request, quotedId, method):
@@ -114,7 +114,6 @@ def editImage0(self, request, imgId, template):
if request.method == 'POST':
form = EditImageForm(request.POST, instance=img)
if form.is_valid():
- # FIX: update map, etc!
updatedObject = form.save()
if ajax:
return HttpResponse(json.dumps({'result': updatedObject.getGeoJson()}),
@@ -305,7 +305,6 @@ def getUploadImageFormVals(self, formData):
if folder == None:
folder = coreModels.Folder.objects.get(id=1)
- # FIX figure out what time zone to show
tzone = pytz.timezone(settings.TIME_ZONE)
timestampStr = Xmp.checkMissing(formData.get('cameraTime', None))
if timestampStr == None:
@@ -404,7 +403,7 @@ def readImportVals(self, *args, **kwargs):
setattr(self, k, v)
def getKmlAdvanced(self):
- # FIX: fix this up and rename it to getKml()
+ # TODO: fix this up and rename it to getKml()
return ("""
<PhotoOverlay %(uuid)s>
<name>%(requestId)s</name>

0 comments on commit 16d5202

Please sign in to comment.