From d7bde2776e6058b97a4af98b0b8ce111683be89c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 11 Oct 2009 15:18:55 +0200 Subject: [PATCH] migrate changed ox api, getUrl -> readUrl --- oxdata/lookup/cache.py | 3 +-- oxdata/poster/models.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/oxdata/lookup/cache.py b/oxdata/lookup/cache.py index d99d47f..1cc0423 100644 --- a/oxdata/lookup/cache.py +++ b/oxdata/lookup/cache.py @@ -3,9 +3,8 @@ import os from django.conf import settings -from ox.cache import getUrlUnicode +from ox.cache import readUrlUnicode from ox import findRe -import ox.net import ox.web.criterion import ox.web.karagarga import ox.web.imdb diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index eb61fb6..537e5ba 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -58,7 +58,7 @@ class PosterCache(models.Model): try: import ox.net name = hashlib.sha1(self.url).hexdigest() - data = ox.net.getUrl(self.url) + data = ox.net.readUrl(self.url) self.image.save(name, ContentFile(data)) except: self.failed = True