damned-lies r1365 - in trunk: . teams
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1365 - in trunk: . teams
- Date: Mon, 19 Jan 2009 19:38:08 +0000 (UTC)
Author: claudep
Date: Mon Jan 19 19:38:07 2009
New Revision: 1365
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1365&view=rev
Log:
2009-01-19 Claude Paroz <claude 2xlibre net>
* teams/views.py: Provide for the case when there is no coordinator for a
team.
Modified:
trunk/ChangeLog
trunk/teams/views.py
Modified: trunk/teams/views.py
==============================================================================
--- trunk/teams/views.py (original)
+++ trunk/teams/views.py Mon Jan 19 19:38:07 2009
@@ -39,6 +39,7 @@
def team(request, team_slug):
try:
team = Team.objects.get(name=team_slug)
+ coordinator = team.get_coordinator()
mem_groups = (
{'title': _("Committers"),
'members': team.get_committers(),
@@ -59,10 +60,11 @@
except Team.DoesNotExist:
lang = get_object_or_404(Language, locale=team_slug)
team = FakeTeam(lang)
+ coordinator = None
mem_groups = ()
# Compare username because request.user is User and get_coordinator is Person
- if request.user.is_authenticated() and request.user.username == team.get_coordinator().username:
+ if request.user.is_authenticated() and coordinator and request.user.username == coordinator.username:
if request.method == 'POST':
form_type = request.POST['form_type']
roles = Role.objects.filter(team=team, role=form_type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]