mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
cleaner import statements
This commit is contained in:
parent
fb0438d352
commit
38beb34a38
@ -1,9 +1,3 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import (absolute_import, division,
|
||||
print_function, unicode_literals)
|
||||
|
||||
import sys
|
||||
import os
|
||||
import string
|
||||
import subprocess
|
||||
@ -14,7 +8,7 @@ import urllib.parse
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.forms.models import modelformset_factory
|
||||
#from django.forms.models import modelformset_factory
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.http import HttpResponse, HttpResponseRedirect
|
||||
from django.shortcuts import get_object_or_404, render
|
||||
@ -446,7 +440,7 @@ def plot(surveypoint, number, point_type, label, mapcode, draw, img):
|
||||
pass
|
||||
|
||||
def prospecting_image(request, name):
|
||||
|
||||
# We should replace all this with something that exports an overlay for Google Maps and OpenStreetView
|
||||
mainImage = Image.open(os.path.join(settings.SURVEY_SCANS, "location_maps", "pguidemap.jpg"))
|
||||
if settings.PUBLIC_SITE and not request.user.is_authenticated():
|
||||
mainImage = Image.new("RGB", mainImage.size, '#ffffff')
|
||||
|
Loading…
Reference in New Issue
Block a user