Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 650d26d32ea7f44e8b11f3105bc4de6201fdbc46 1 parent 7d23d1e
Jacob Kaplan-Moss authored January 25, 2006
0  django/parts/media/__init__.py
No changes.
6  django/parts/media/photos.py
... ...
@@ -1,6 +0,0 @@
1  
-import re
2  
-
3  
-def get_thumbnail_url(photo_url, width):
4  
-    bits = photo_url.split('/')
5  
-    bits[-1] = re.sub(r'(?i)\.(gif|jpg)$', '_t%s.\\1' % width, bits[-1])
6  
-    return '/'.join(bits)

0 notes on commit 650d26d

Please sign in to comment.
Something went wrong with that request. Please try again.