Merge lp:~ronnie.vd.c/erato/trunk into lp:erato

Proposed by Ronnie on 2010-10-20
Status: Merged
Merged at revision: 3
Proposed branch: lp:~ronnie.vd.c/erato/trunk
Merge into: lp:erato
Diff against target: 420 lines (+266/-8)
16 files modified
.bzrignore (+5/-0)
art_website/assets/models.py (+17/-0)
art_website/assets/tests.py (+17/-0)
art_website/assets/views.py (+17/-0)
art_website/common/context_processors.py (+17/-0)
art_website/common/launchpad.py (+20/-4)
art_website/common/shortcuts.py (+17/-0)
art_website/common/utils.py (+17/-0)
art_website/common/views.py (+17/-0)
art_website/common/widgets.py (+17/-0)
art_website/settings.py (+21/-4)
art_website/urls.py (+17/-0)
art_website/users/admin.py (+17/-0)
art_website/users/management/commands/update-profiles.py (+16/-0)
art_website/users/models.py (+17/-0)
media/css/styles.css (+17/-0)
To merge this branch: bzr merge lp:~ronnie.vd.c/erato/trunk
Reviewer Review Type Date Requested Status
Martin Owens 2010-10-20 Approve on 2010-10-20
Review via email: mp+38962@code.launchpad.net

Description of the Change

Added Copyright and GPLv3 comment

To post a comment you must log in.
lp:~ronnie.vd.c/erato/trunk updated on 2010-10-20
4. By Ronnie on 2010-10-20

Added Copyright and GPLv3 comment

5. By Ronnie on 2010-10-20

Fixed Copyright and some indentations

Martin Owens (doctormo) wrote :

Good commit, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.bzrignore'
2--- .bzrignore 1970-01-01 00:00:00 +0000
3+++ .bzrignore 2010-10-20 19:16:20 +0000
4@@ -0,0 +1,5 @@
5+.settings
6+.project
7+.pydevproject
8+*.pyc
9+local_settings.py
10
11=== modified file 'art_website/assets/models.py'
12--- art_website/assets/models.py 2010-10-20 15:33:05 +0000
13+++ art_website/assets/models.py 2010-10-20 19:16:20 +0000
14@@ -1,3 +1,20 @@
15+#
16+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
17+#
18+# This program is free software: you can redistribute it and/or modify
19+# it under the terms of the GNU Affero General Public License as
20+# published by the Free Software Foundation, either version 3 of the
21+# License, or (at your option) any later version.
22+#
23+# This program is distributed in the hope that it will be useful,
24+# but WITHOUT ANY WARRANTY; without even the implied warranty of
25+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+# GNU Affero General Public License for more details.
27+#
28+# You should have received a copy of the GNU Affero General Public License
29+# along with this program. If not, see <http://www.gnu.org/licenses/>.
30+#
31+
32 from django.db import models
33
34 # Create your models here.
35
36=== modified file 'art_website/assets/tests.py'
37--- art_website/assets/tests.py 2010-10-20 15:33:05 +0000
38+++ art_website/assets/tests.py 2010-10-20 19:16:20 +0000
39@@ -1,3 +1,20 @@
40+#
41+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
42+#
43+# This program is free software: you can redistribute it and/or modify
44+# it under the terms of the GNU Affero General Public License as
45+# published by the Free Software Foundation, either version 3 of the
46+# License, or (at your option) any later version.
47+#
48+# This program is distributed in the hope that it will be useful,
49+# but WITHOUT ANY WARRANTY; without even the implied warranty of
50+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51+# GNU Affero General Public License for more details.
52+#
53+# You should have received a copy of the GNU Affero General Public License
54+# along with this program. If not, see <http://www.gnu.org/licenses/>.
55+#
56+
57 """
58 This file demonstrates two different styles of tests (one doctest and one
59 unittest). These will both pass when you run "manage.py test".
60
61=== modified file 'art_website/assets/views.py'
62--- art_website/assets/views.py 2010-10-20 15:33:05 +0000
63+++ art_website/assets/views.py 2010-10-20 19:16:20 +0000
64@@ -1,1 +1,18 @@
65+#
66+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
67+#
68+# This program is free software: you can redistribute it and/or modify
69+# it under the terms of the GNU Affero General Public License as
70+# published by the Free Software Foundation, either version 3 of the
71+# License, or (at your option) any later version.
72+#
73+# This program is distributed in the hope that it will be useful,
74+# but WITHOUT ANY WARRANTY; without even the implied warranty of
75+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76+# GNU Affero General Public License for more details.
77+#
78+# You should have received a copy of the GNU Affero General Public License
79+# along with this program. If not, see <http://www.gnu.org/licenses/>.
80+#
81+
82 # Create your views here.
83
84=== modified file 'art_website/common/context_processors.py'
85--- art_website/common/context_processors.py 2010-10-19 19:34:42 +0000
86+++ art_website/common/context_processors.py 2010-10-20 19:16:20 +0000
87@@ -1,3 +1,20 @@
88+#
89+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
90+#
91+# This program is free software: you can redistribute it and/or modify
92+# it under the terms of the GNU Affero General Public License as
93+# published by the Free Software Foundation, either version 3 of the
94+# License, or (at your option) any later version.
95+#
96+# This program is distributed in the hope that it will be useful,
97+# but WITHOUT ANY WARRANTY; without even the implied warranty of
98+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
99+# GNU Affero General Public License for more details.
100+#
101+# You should have received a copy of the GNU Affero General Public License
102+# along with this program. If not, see <http://www.gnu.org/licenses/>.
103+#
104+
105 # context processors for loco-directory
106 # see: http://docs.djangoproject.com/en/dev/ref/settings/#setting-TEMPLATE_CONTEXT_PROCESSORS
107 # to use this processor, add "common.context_processors.loco_version" to your variable TEMPLATE_CONTEXT_PROCESSORS in your settings file
108
109=== modified file 'art_website/common/launchpad.py'
110--- art_website/common/launchpad.py 2010-10-19 19:34:42 +0000
111+++ art_website/common/launchpad.py 2010-10-20 19:16:20 +0000
112@@ -1,4 +1,20 @@
113 # -*- coding: utf-8 -*-
114+#
115+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
116+#
117+# This program is free software: you can redistribute it and/or modify
118+# it under the terms of the GNU Affero General Public License as
119+# published by the Free Software Foundation, either version 3 of the
120+# License, or (at your option) any later version.
121+#
122+# This program is distributed in the hope that it will be useful,
123+# but WITHOUT ANY WARRANTY; without even the implied warranty of
124+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
125+# GNU Affero General Public License for more details.
126+#
127+# You should have received a copy of the GNU Affero General Public License
128+# along with this program. If not, see <http://www.gnu.org/licenses/>.
129+#
130
131 from launchpadlib.launchpad import Launchpad
132 from launchpadlib.errors import HTTPError
133@@ -75,11 +91,11 @@
134 # or similar, we are in a hard spot.
135 # When this bug is fixed, this can be made cleaner.
136 try:
137- lp.people[identity].mugshot.open()
138- return "https://edge.launchpad.net/api/beta/~%s/mugshot" % (identity)
139+ lp.people[identity].mugshot.open()
140+ return "https://edge.launchpad.net/api/beta/~%s/mugshot" % (identity)
141 except HTTPError:
142- # 404 or some other issue that means we should default to False
143- return "https://edge.launchpad.net/api/beta/ubuntu/mugshot"
144+ # 404 or some other issue that means we should default to False
145+ return "https://edge.launchpad.net/api/beta/ubuntu/mugshot"
146
147 def get_user_timezone(username, lp=None):
148 timezone = 'UTC'
149
150=== modified file 'art_website/common/shortcuts.py'
151--- art_website/common/shortcuts.py 2010-10-19 19:34:42 +0000
152+++ art_website/common/shortcuts.py 2010-10-20 19:16:20 +0000
153@@ -1,3 +1,20 @@
154+#
155+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
156+#
157+# This program is free software: you can redistribute it and/or modify
158+# it under the terms of the GNU Affero General Public License as
159+# published by the Free Software Foundation, either version 3 of the
160+# License, or (at your option) any later version.
161+#
162+# This program is distributed in the hope that it will be useful,
163+# but WITHOUT ANY WARRANTY; without even the implied warranty of
164+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
165+# GNU Affero General Public License for more details.
166+#
167+# You should have received a copy of the GNU Affero General Public License
168+# along with this program. If not, see <http://www.gnu.org/licenses/>.
169+#
170+
171 """
172 Lifted from Django 1.1.1 for loco-directory
173
174
175=== modified file 'art_website/common/utils.py'
176--- art_website/common/utils.py 2010-10-19 19:34:42 +0000
177+++ art_website/common/utils.py 2010-10-20 19:16:20 +0000
178@@ -1,3 +1,20 @@
179+#
180+# Copyright 2010, Martin Owens and Adnane Belmadiaf
181+#
182+# This program is free software: you can redistribute it and/or modify
183+# it under the terms of the GNU Affero General Public License as
184+# published by the Free Software Foundation, either version 3 of the
185+# License, or (at your option) any later version.
186+#
187+# This program is distributed in the hope that it will be useful,
188+# but WITHOUT ANY WARRANTY; without even the implied warranty of
189+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
190+# GNU Affero General Public License for more details.
191+#
192+# You should have received a copy of the GNU Affero General Public License
193+# along with this program. If not, see <http://www.gnu.org/licenses/>.
194+#
195+
196 import email
197 import os
198 from copy import deepcopy
199
200=== modified file 'art_website/common/views.py'
201--- art_website/common/views.py 2010-10-19 19:34:42 +0000
202+++ art_website/common/views.py 2010-10-20 19:16:20 +0000
203@@ -1,4 +1,21 @@
204 # -*- coding: utf-8 -*-
205+#
206+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
207+#
208+# This program is free software: you can redistribute it and/or modify
209+# it under the terms of the GNU Affero General Public License as
210+# published by the Free Software Foundation, either version 3 of the
211+# License, or (at your option) any later version.
212+#
213+# This program is distributed in the hope that it will be useful,
214+# but WITHOUT ANY WARRANTY; without even the implied warranty of
215+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
216+# GNU Affero General Public License for more details.
217+#
218+# You should have received a copy of the GNU Affero General Public License
219+# along with this program. If not, see <http://www.gnu.org/licenses/>.
220+#
221+
222 from django.http import HttpResponseRedirect
223 from django.shortcuts import render_to_response
224 from django.template import RequestContext
225
226=== modified file 'art_website/common/widgets.py'
227--- art_website/common/widgets.py 2010-10-19 19:34:42 +0000
228+++ art_website/common/widgets.py 2010-10-20 19:16:20 +0000
229@@ -1,3 +1,20 @@
230+#
231+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
232+#
233+# This program is free software: you can redistribute it and/or modify
234+# it under the terms of the GNU Affero General Public License as
235+# published by the Free Software Foundation, either version 3 of the
236+# License, or (at your option) any later version.
237+#
238+# This program is distributed in the hope that it will be useful,
239+# but WITHOUT ANY WARRANTY; without even the implied warranty of
240+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
241+# GNU Affero General Public License for more details.
242+#
243+# You should have received a copy of the GNU Affero General Public License
244+# along with this program. If not, see <http://www.gnu.org/licenses/>.
245+#
246+
247 # Modified copy of django.contrib.admin.widgets.RelatedFieldWidgetWrapper
248 # Removed reverences to admin_site, and instead accept a popup_url
249
250
251=== modified file 'art_website/settings.py'
252--- art_website/settings.py 2010-10-20 15:33:05 +0000
253+++ art_website/settings.py 2010-10-20 19:16:20 +0000
254@@ -1,3 +1,20 @@
255+#
256+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
257+#
258+# This program is free software: you can redistribute it and/or modify
259+# it under the terms of the GNU Affero General Public License as
260+# published by the Free Software Foundation, either version 3 of the
261+# License, or (at your option) any later version.
262+#
263+# This program is distributed in the hope that it will be useful,
264+# but WITHOUT ANY WARRANTY; without even the implied warranty of
265+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
266+# GNU Affero General Public License for more details.
267+#
268+# You should have received a copy of the GNU Affero General Public License
269+# along with this program. If not, see <http://www.gnu.org/licenses/>.
270+#
271+
272 # Django settings for art_website project.
273
274 import os, platform
275@@ -7,9 +24,9 @@
276 # Far too clever trick to know if we're running on the deployment server.
277 DEVELOPMENT_MODE = (platform.node() != "art.ubuntu")
278 if DEVELOPMENT_MODE:
279- DEBUG = True
280+ DEBUG = True
281 else:
282- DEBUG = False
283+ DEBUG = False
284
285 TEMPLATE_DEBUG = DEBUG
286 STATIC_SERVE = True
287@@ -118,6 +135,6 @@
288
289 import logging
290 try:
291- from local_settings import *
292+ from local_settings import *
293 except ImportError:
294- logging.warning("No local_settings.py were found. See INSTALL for instructions.")
295+ logging.warning("No local_settings.py were found. See INSTALL for instructions.")
296
297=== modified file 'art_website/urls.py'
298--- art_website/urls.py 2010-10-20 15:33:05 +0000
299+++ art_website/urls.py 2010-10-20 19:16:20 +0000
300@@ -1,3 +1,20 @@
301+#
302+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
303+#
304+# This program is free software: you can redistribute it and/or modify
305+# it under the terms of the GNU Affero General Public License as
306+# published by the Free Software Foundation, either version 3 of the
307+# License, or (at your option) any later version.
308+#
309+# This program is distributed in the hope that it will be useful,
310+# but WITHOUT ANY WARRANTY; without even the implied warranty of
311+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
312+# GNU Affero General Public License for more details.
313+#
314+# You should have received a copy of the GNU Affero General Public License
315+# along with this program. If not, see <http://www.gnu.org/licenses/>.
316+#
317+
318 import os
319 from django.conf.urls.defaults import *
320 from django.conf import settings
321
322=== modified file 'art_website/users/admin.py'
323--- art_website/users/admin.py 2010-10-20 15:33:05 +0000
324+++ art_website/users/admin.py 2010-10-20 19:16:20 +0000
325@@ -1,3 +1,20 @@
326+#
327+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
328+#
329+# This program is free software: you can redistribute it and/or modify
330+# it under the terms of the GNU Affero General Public License as
331+# published by the Free Software Foundation, either version 3 of the
332+# License, or (at your option) any later version.
333+#
334+# This program is distributed in the hope that it will be useful,
335+# but WITHOUT ANY WARRANTY; without even the implied warranty of
336+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
337+# GNU Affero General Public License for more details.
338+#
339+# You should have received a copy of the GNU Affero General Public License
340+# along with this program. If not, see <http://www.gnu.org/licenses/>.
341+#
342+
343 from django.contrib import admin
344 from users.models import UserProfile
345
346
347=== modified file 'art_website/users/management/commands/update-profiles.py'
348--- art_website/users/management/commands/update-profiles.py 2010-10-20 15:33:05 +0000
349+++ art_website/users/management/commands/update-profiles.py 2010-10-20 19:16:20 +0000
350@@ -1,4 +1,20 @@
351 #!/usr/bin/python
352+#
353+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
354+#
355+# This program is free software: you can redistribute it and/or modify
356+# it under the terms of the GNU Affero General Public License as
357+# published by the Free Software Foundation, either version 3 of the
358+# License, or (at your option) any later version.
359+#
360+# This program is distributed in the hope that it will be useful,
361+# but WITHOUT ANY WARRANTY; without even the implied warranty of
362+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
363+# GNU Affero General Public License for more details.
364+#
365+# You should have received a copy of the GNU Affero General Public License
366+# along with this program. If not, see <http://www.gnu.org/licenses/>.
367+#
368
369 from django.core.management.base import NoArgsCommand
370
371
372=== modified file 'art_website/users/models.py'
373--- art_website/users/models.py 2010-10-20 15:33:05 +0000
374+++ art_website/users/models.py 2010-10-20 19:16:20 +0000
375@@ -1,3 +1,20 @@
376+#
377+# Copyright 2010, Martin Owens and Adnane Belmadiaf.
378+#
379+# This program is free software: you can redistribute it and/or modify
380+# it under the terms of the GNU Affero General Public License as
381+# published by the Free Software Foundation, either version 3 of the
382+# License, or (at your option) any later version.
383+#
384+# This program is distributed in the hope that it will be useful,
385+# but WITHOUT ANY WARRANTY; without even the implied warranty of
386+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
387+# GNU Affero General Public License for more details.
388+#
389+# You should have received a copy of the GNU Affero General Public License
390+# along with this program. If not, see <http://www.gnu.org/licenses/>.
391+#
392+
393 from django.db import models
394 from django.contrib.auth import models as auth_models
395 # Create your models here.
396
397=== modified file 'media/css/styles.css'
398--- media/css/styles.css 2010-10-20 15:33:05 +0000
399+++ media/css/styles.css 2010-10-20 19:16:20 +0000
400@@ -1,3 +1,20 @@
401+/*
402+ Copyright 2008, Martin Owens.
403+
404+This program is free software: you can redistribute it and/or modify
405+it under the terms of the GNU Affero General Public License as
406+published by the Free Software Foundation, either version 3 of the
407+License, or (at your option) any later version.
408+
409+This program is distributed in the hope that it will be useful,
410+but WITHOUT ANY WARRANTY; without even the implied warranty of
411+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
412+GNU Affero General Public License for more details.
413+
414+You should have received a copy of the GNU Affero General Public License
415+along with this program. If not, see <http://www.gnu.org/licenses/>.
416+*/
417+
418 body {
419 font-family: 'Ubuntubeta','Ubuntu','Bitstream Vera Sans','DejaVu Sans', Tahoma, sans-serif;
420 font-size:12px;

Subscribers

People subscribed via source and target branches