1
0
mirror of https://github.com/django/django.git synced 2025-04-21 15:54:37 +00:00

magic-removal: removed django.parts.media -- it's cruft left over from Ellington that isn't helpful in Django at all

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-01-25 04:01:18 +00:00
parent 7d23d1e798
commit 650d26d32e
2 changed files with 0 additions and 6 deletions

View File

@ -1,6 +0,0 @@
import re
def get_thumbnail_url(photo_url, width):
bits = photo_url.split('/')
bits[-1] = re.sub(r'(?i)\.(gif|jpg)$', '_t%s.\\1' % width, bits[-1])
return '/'.join(bits)