Esempio n. 1
0
    def __init__(self, base_url=None):

        if base_url is None:
            base_url = settings.MEDIA_URL
        self.base_url = base_url
        self.imsto = load_imsto()
        self.field = 'image_path'
Esempio n. 2
0
	def __init__(self, base_url=None):

		if base_url is None:
			base_url = settings.MEDIA_URL
		self.base_url = base_url
		self.imsto = load_imsto()
		self.field = 'image_path'
Esempio n. 3
0
def ImageHandle(request, path):
    environ = request.META
    SECTION = get_section(request.META)

    imsto = load_imsto(SECTION)
    try:
        dst_file, dst_path = imsto.load(path)
    except UrlError, e:
        return HttpResponseNotFound(str(e))
Esempio n. 4
0
def ImageHandle(request, path):
	environ = request.META
	SECTION = get_section(request.META)

	imsto = load_imsto(SECTION)
	try:
		dst_file, dst_path = imsto.load(path)
	except UrlError, e:
		return HttpResponseNotFound(str(e))