migrate changed ox api, getUrl -> readUrl

This commit is contained in:
j 2009-10-11 15:18:55 +02:00
parent f7a9ce1364
commit d7bde2776e
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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