Merge lp:~salgado/summit/fix-linaro-blueprints-identification into lp:summit

Proposed by Guilherme Salgado
Status: Merged
Merged at revision: 43
Proposed branch: lp:~salgado/summit/fix-linaro-blueprints-identification
Merge into: lp:summit
Diff against target: 28 lines (+2/-16)
1 file modified
summit/schedule/models/meetingmodel.py (+2/-16)
To merge this branch: bzr merge lp:~salgado/summit/fix-linaro-blueprints-identification
Reviewer Review Type Date Requested Status
Dave Walker (community) Approve
Review via email: mp+38327@code.launchpad.net

Description of the change

Some Linaro-related blueprints may be registered under Ubuntu or other projects as they make sense there, so to make sure we identify those sessions as linaro, we have to change the is_linaro property to return True whenever the 'linaro' string is present in the path part of the blueprint's URL.

To post a comment you must log in.
Revision history for this message
Dave Walker (davewalker) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'summit/schedule/models/meetingmodel.py'
2--- summit/schedule/models/meetingmodel.py 2010-09-22 14:38:26 +0000
3+++ summit/schedule/models/meetingmodel.py 2010-10-13 13:15:57 +0000
4@@ -114,22 +114,8 @@
5 @property
6 def is_linaro(self):
7 path = urlparse(self.spec_url).path
8- linaro_projects = [
9- 'linaro',
10- 'linaro-kernel-wg',
11- 'linaro-pm-wg',
12- 'binutils-linaro',
13- 'cortex-strings',
14- 'gcc-linaro',
15- 'gcc-linaro-tracking',
16- 'gdb-linaro',
17- 'linaro-toolchain-misc',
18- 'qemu-linaro',
19- 'tcwg-web',
20- ]
21- for project in linaro_projects:
22- if path.startswith('/%s' % project):
23- return True
24+ if 'linaro' in path:
25+ return True
26 return False
27
28 @property

Subscribers

People subscribed via source and target branches