add ox.web to this repos

This commit is contained in:
j 2010-07-08 01:25:57 +02:00
commit 06d61943ac
29 changed files with 2123 additions and 9 deletions

10
ox/web/oxdb.py Normal file
View file

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import ox.cache
def getPosterUrl(id):
url = "http://0xdb.org/%s/poster.0xdb.jpg" % id
if ox.cache.exists(url):
return url
return ''