Merge lp:~mhall119/ubuntu-community-accomplishments/loco-portal-events-accomplishments into lp:ubuntu-community-accomplishments

Proposed by Michael Hall on 2012-06-01
Status: Merged
Merged at revision: 148
Proposed branch: lp:~mhall119/ubuntu-community-accomplishments/loco-portal-events-accomplishments
Merge into: lp:ubuntu-community-accomplishments
Diff against target: 110 lines (+9/-8)
8 files modified
CATEGORIES (+1/-0)
accomplishments/ubuntu-community/en/advocacy/attend-global-jam.accomplishment (+1/-1)
accomplishments/ubuntu-community/en/advocacy/attend-loco-event.accomplishment (+1/-1)
accomplishments/ubuntu-community/en/advocacy/attend-other-team-event.accomplishment (+1/-1)
accomplishments/ubuntu-community/en/advocacy/attend-ubuntu-hour.accomplishment (+1/-1)
accomplishments/ubuntu-community/en/advocacy/organize-loco-event.accomplishment (+1/-1)
scripts/ubuntu-community/advocacy/attend-global-jam.py (+2/-2)
scripts/ubuntu-community/advocacy/attend-ubuntu-hour.py (+1/-1)
To merge this branch: bzr merge lp:~mhall119/ubuntu-community-accomplishments/loco-portal-events-accomplishments
Reviewer Review Type Date Requested Status
Ubuntu Community Accomplishments Reviewers 2012-06-01 Pending
Review via email: mp+108410@code.launchpad.net

Commit Message

Make global jam and ubuntu hour checks more flexible, add tests

Description of the Change

Make global jam and ubuntu hour checks more flexible, add tests

To post a comment you must log in.
147. By Michael Hall on 2012-06-01

Add sub-category for LoCo Teams:Events

148. By Michael Hall on 2012-06-01

Add LoCo Teams:Events to the CATEGORIES file

149. By Michael Hall on 2012-06-01

Merge from trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CATEGORIES'
2--- CATEGORIES 2012-06-01 19:58:27 +0000
3+++ CATEGORIES 2012-06-01 20:11:22 +0000
4@@ -15,5 +15,6 @@
5 Your Profile
6 Code Hosting
7 LoCo Teams
8+ Events
9 QA
10 Forums
11
12=== modified file 'accomplishments/ubuntu-community/en/advocacy/attend-global-jam.accomplishment'
13--- accomplishments/ubuntu-community/en/advocacy/attend-global-jam.accomplishment 2012-05-31 23:11:49 +0000
14+++ accomplishments/ubuntu-community/en/advocacy/attend-global-jam.accomplishment 2012-06-01 20:11:22 +0000
15@@ -2,7 +2,7 @@
16 title=Attend Ubuntu Global Jam Event
17 description=You attended a Global Jam with your Local Community
18 collection=ubuntu-community
19-category=LoCo Teams
20+category=LoCo Teams:Events
21 needs-signing=true
22 icon=loco.png
23 depends=ubuntu-community/attend-loco-event
24
25=== modified file 'accomplishments/ubuntu-community/en/advocacy/attend-loco-event.accomplishment'
26--- accomplishments/ubuntu-community/en/advocacy/attend-loco-event.accomplishment 2012-05-24 21:28:36 +0000
27+++ accomplishments/ubuntu-community/en/advocacy/attend-loco-event.accomplishment 2012-06-01 20:11:22 +0000
28@@ -2,7 +2,7 @@
29 title=Attend LoCo Team Event
30 description=You attended a Local Community Team event
31 collection=ubuntu-community
32-category=LoCo Teams
33+category=LoCo Teams:Events
34 needs-signing=true
35 icon=loco.png
36 depends=ubuntu-community/registered-on-launchpad
37
38=== modified file 'accomplishments/ubuntu-community/en/advocacy/attend-other-team-event.accomplishment'
39--- accomplishments/ubuntu-community/en/advocacy/attend-other-team-event.accomplishment 2012-06-01 06:06:57 +0000
40+++ accomplishments/ubuntu-community/en/advocacy/attend-other-team-event.accomplishment 2012-06-01 20:11:22 +0000
41@@ -2,7 +2,7 @@
42 title=Attend Event with another Local Community
43 description=You attended an event with a Local Community other than your own
44 collection=ubuntu-community
45-category=LoCo Teams
46+category=LoCo Teams:Events
47 needs-signing=true
48 icon=loco.png
49 depends=ubuntu-community/member-loco-team ubuntu-community/attend-loco-event
50
51=== modified file 'accomplishments/ubuntu-community/en/advocacy/attend-ubuntu-hour.accomplishment'
52--- accomplishments/ubuntu-community/en/advocacy/attend-ubuntu-hour.accomplishment 2012-05-31 23:11:49 +0000
53+++ accomplishments/ubuntu-community/en/advocacy/attend-ubuntu-hour.accomplishment 2012-06-01 20:11:22 +0000
54@@ -2,7 +2,7 @@
55 title=Attend Ubuntu Hour Event
56 description=You attended an Ubuntu Hour with your Local Community
57 collection=ubuntu-community
58-category=LoCo Teams
59+category=LoCo Teams:Events
60 needs-signing=true
61 icon=loco.png
62 depends=ubuntu-community/attend-loco-event
63
64=== modified file 'accomplishments/ubuntu-community/en/advocacy/organize-loco-event.accomplishment'
65--- accomplishments/ubuntu-community/en/advocacy/organize-loco-event.accomplishment 2012-05-31 23:42:29 +0000
66+++ accomplishments/ubuntu-community/en/advocacy/organize-loco-event.accomplishment 2012-06-01 20:11:22 +0000
67@@ -2,7 +2,7 @@
68 title=Organized a LoCo Team Event
69 description=You organized a Local Community Team event
70 collection=ubuntu-community
71-category=LoCo Teams
72+category=LoCo Teams:Events
73 needs-signing=true
74 icon=loco.png
75 depends=ubuntu-community/registered-on-launchpad
76
77=== modified file 'scripts/ubuntu-community/advocacy/attend-global-jam.py'
78--- scripts/ubuntu-community/advocacy/attend-global-jam.py 2012-06-01 06:06:57 +0000
79+++ scripts/ubuntu-community/advocacy/attend-global-jam.py 2012-06-01 20:11:22 +0000
80@@ -11,7 +11,7 @@
81 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib')))
82 from loco_team_portal import LocoTeamPortal
83
84-GLOBAL_JAM_NAME = 'Ubuntu Global Jam'
85+GLOBAL_JAM_NAME = 'Global Jam'
86
87 try:
88
89@@ -29,7 +29,7 @@
90 sys.exit(1)
91
92 ltp = LocoTeamPortal()
93- attending = ltp.getCollection('attendees', attendee_profile__user__username=me.name, promise="sure", team_event__date_begin__lt=datetime.datetime.now(), team_event__global_event__name=GLOBAL_JAM_NAME)
94+ attending = ltp.getCollection('attendees', attendee_profile__user__username=me.name, promise="sure", team_event__date_begin__lt=datetime.datetime.now(), team_event__global_event__name__contains=GLOBAL_JAM_NAME)
95 if len(attending) > 0:
96 sys.exit(0)
97 else:
98
99=== modified file 'scripts/ubuntu-community/advocacy/attend-ubuntu-hour.py'
100--- scripts/ubuntu-community/advocacy/attend-ubuntu-hour.py 2012-06-01 06:06:57 +0000
101+++ scripts/ubuntu-community/advocacy/attend-ubuntu-hour.py 2012-06-01 20:11:22 +0000
102@@ -29,7 +29,7 @@
103 sys.exit(1)
104
105 ltp = LocoTeamPortal()
106- attending = ltp.getCollection('attendees', attendee_profile__user__username=me.name, promise="sure", team_event__date_begin__lt=datetime.datetime.now(), team_event__global_event__name=UBUNTU_HOUR_NAME)
107+ attending = ltp.getCollection('attendees', attendee_profile__user__username=me.name, promise="sure", team_event__date_begin__lt=datetime.datetime.now(), team_event__global_event__name__contains=UBUNTU_HOUR_NAME)
108 if len(attending) > 0:
109 sys.exit(0)
110 else:

Subscribers

People subscribed via source and target branches

to all changes: