Permalink
Browse files

magic-removal: removed django.parts.media -- it's cruft left over fro…

…m 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
  • Loading branch information...
1 parent 7d23d1e commit 650d26d32ea7f44e8b11f3105bc4de6201fdbc46 @jacobian jacobian committed Jan 25, 2006
Showing with 0 additions and 6 deletions.
  1. 0 django/parts/media/__init__.py
  2. +0 −6 django/parts/media/photos.py
View
0 django/parts/media/__init__.py
No changes.
View
6 django/parts/media/photos.py
@@ -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)

0 comments on commit 650d26d

Please sign in to comment.