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
1=== modified file '.bzrignore'
2--- .bzrignore 2010-10-20 20:37:09 +0000
3+++ .bzrignore 2010-10-20 21:41:30 +0000
4@@ -4,4 +4,4 @@
5 *.pyc
6 *.mo
7 art_website/art_website.db
8-local_settings.py
9+art_website/local_settings.py
10
11=== modified file 'AUTHORS'
12--- AUTHORS 2010-10-20 20:37:09 +0000
13+++ AUTHORS 2010-10-20 21:41:30 +0000
14@@ -1,3 +1,3 @@
15 Martin Owens <doctormo@gmail.com>
16 Adnane Belmadiaf <adnane002@gmail.com>
17-Ronnie <peter.puk@gmail.com>
18+Ronnie <ronnie.vd.c@gmail.com>
19
20=== modified file 'art_website/common/launchpad.py'
21--- art_website/common/launchpad.py 2010-10-20 20:33:00 +0000
22+++ art_website/common/launchpad.py 2010-10-20 21:41:30 +0000
23@@ -48,22 +48,6 @@
24 return None
25 return launchpad
26
27-def is_user_on_loco_council(user):
28- if not user.is_authenticated():
29- return False
30- if is_debug_user(user.username):
31- return True
32- lc_in_groups = user.groups.filter(name__exact='ubuntu-lococouncil')
33- return (lc_in_groups.count() == 1)
34-
35-def is_team_member(user, team):
36- if not user.is_authenticated():
37- return False
38- if is_debug_user(user.username):
39- return True
40- user_in_groups = user.groups.filter(name__exact=team.lp_name)
41- return (user_in_groups.count() >= 1)
42-
43 def get_mugshot_url(lp, identity):
44 # Not ideal, but until LP #336943
45 # or similar, we are in a hard spot.
46
47=== modified file 'art_website/urls.py'
48--- art_website/urls.py 2010-10-20 19:14:30 +0000
49+++ art_website/urls.py 2010-10-20 21:41:30 +0000
50@@ -33,6 +33,6 @@
51
52 if settings.STATIC_SERVE:
53 urlpatterns += patterns('',
54- (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(settings.PROJECT_PATH,'media')}),
55+ (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(settings.WEBSITE_PATH,'media')}),
56 (r'^robots\.txt$', robots),
57 )

Subscribers

People subscribed via source and target branches