Merge lp:~ronnie.vd.c/erato/art-design-website into lp:erato

Proposed by Ronnie
Status: Merged
Merged at revision: 7
Proposed branch: lp:~ronnie.vd.c/erato/art-design-website
Merge into: lp:erato
Diff against target: 57 lines (+3/-19)
4 files modified
.bzrignore (+1/-1)
AUTHORS (+1/-1)
art_website/common/launchpad.py (+0/-16)
art_website/urls.py (+1/-1)
To merge this branch: bzr merge lp:~ronnie.vd.c/erato/art-design-website
Reviewer Review Type Date Requested Status
Martin Owens Approve
Review via email: mp+38989@code.launchpad.net

Description of the change

Fixed static file serve dir because dit has moved

To post a comment you must log in.
8. By Ronnie

Changed my email, removed some unnecessary functions in launchpad.py and changed the static_media url

Revision history for this message
Martin Owens (doctormo) wrote :

Great updates, merged.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2010-10-20 20:37:09 +0000
+++ .bzrignore 2010-10-20 21:41:30 +0000
@@ -4,4 +4,4 @@
4*.pyc4*.pyc
5*.mo5*.mo
6art_website/art_website.db6art_website/art_website.db
7local_settings.py7art_website/local_settings.py
88
=== modified file 'AUTHORS'
--- AUTHORS 2010-10-20 20:37:09 +0000
+++ AUTHORS 2010-10-20 21:41:30 +0000
@@ -1,3 +1,3 @@
1Martin Owens <doctormo@gmail.com>1Martin Owens <doctormo@gmail.com>
2Adnane Belmadiaf <adnane002@gmail.com>2Adnane Belmadiaf <adnane002@gmail.com>
3Ronnie <peter.puk@gmail.com>3Ronnie <ronnie.vd.c@gmail.com>
44
=== modified file 'art_website/common/launchpad.py'
--- art_website/common/launchpad.py 2010-10-20 20:33:00 +0000
+++ art_website/common/launchpad.py 2010-10-20 21:41:30 +0000
@@ -48,22 +48,6 @@
48 return None48 return None
49 return launchpad49 return launchpad
5050
51def is_user_on_loco_council(user):
52 if not user.is_authenticated():
53 return False
54 if is_debug_user(user.username):
55 return True
56 lc_in_groups = user.groups.filter(name__exact='ubuntu-lococouncil')
57 return (lc_in_groups.count() == 1)
58
59def is_team_member(user, team):
60 if not user.is_authenticated():
61 return False
62 if is_debug_user(user.username):
63 return True
64 user_in_groups = user.groups.filter(name__exact=team.lp_name)
65 return (user_in_groups.count() >= 1)
66
67def get_mugshot_url(lp, identity):51def get_mugshot_url(lp, identity):
68 # Not ideal, but until LP #33694352 # Not ideal, but until LP #336943
69 # or similar, we are in a hard spot.53 # or similar, we are in a hard spot.
7054
=== modified file 'art_website/urls.py'
--- art_website/urls.py 2010-10-20 19:14:30 +0000
+++ art_website/urls.py 2010-10-20 21:41:30 +0000
@@ -33,6 +33,6 @@
3333
34if settings.STATIC_SERVE:34if settings.STATIC_SERVE:
35 urlpatterns += patterns('',35 urlpatterns += patterns('',
36 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(settings.PROJECT_PATH,'media')}),36 (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(settings.WEBSITE_PATH,'media')}),
37 (r'^robots\.txt$', robots),37 (r'^robots\.txt$', robots),
38 )38 )

Subscribers

People subscribed via source and target branches