annotate gpp/bio/urls.py @ 265:1ba2c6bf6eb7
Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author |
Brian Neal <bgneal@gmail.com> |
date |
Fri, 24 Sep 2010 02:12:09 +0000 |
parents |
7ddd60164245 |
children |
0dd8989abef2 |
rev |
line source |
gremmie@1
|
1 """urls for the bio application"""
|
gremmie@1
|
2 from django.conf.urls.defaults import *
|
gremmie@1
|
3
|
gremmie@1
|
4 urlpatterns = patterns('bio.views',
|
bgneal@243
|
5 url(r'^members/(?P<type>user|date)/$',
|
gremmie@1
|
6 'member_list',
|
bgneal@243
|
7 name='bio-member_list'),
|
bgneal@149
|
8 url(r'^members/search/$', 'member_search', name='bio-member_search'),
|
gremmie@1
|
9 url(r'^me/$', 'my_profile', name='bio-me'),
|
gremmie@1
|
10 url(r'^view/(?P<username>\w{1,30})/$', 'view_profile', name='bio-view_profile'),
|
gremmie@1
|
11 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'),
|
bgneal@29
|
12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'),
|
gremmie@1
|
13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'),
|
bgneal@138
|
14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'),
|
gremmie@1
|
15 )
|