damned-lies r1459 - in trunk: . stats teams
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1459 - in trunk: . stats teams
- Date: Tue, 3 Mar 2009 15:10:34 +0000 (UTC)
Author: stephaner
Date: Tue Mar 3 15:10:34 2009
New Revision: 1459
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1459&view=rev
Log:
2009-03-03 StÃphane Raimbault <stephane raimbault gmail com>
* stats/forms.py:
* stats/models.py:
* stats/utils.py:
* teams/forms.py: Removed useless imports.
Modified:
trunk/ChangeLog
trunk/stats/forms.py
trunk/stats/models.py
trunk/stats/utils.py
trunk/teams/forms.py
Modified: trunk/stats/forms.py
==============================================================================
--- trunk/stats/forms.py (original)
+++ trunk/stats/forms.py Tue Mar 3 15:10:34 2009
@@ -1,6 +1,5 @@
from django import forms
-from stats.models import Module, Branch, Category, CATEGORY_CHOICES, Release
-
+from stats.models import CATEGORY_CHOICES, Release
class ReleaseField(forms.ModelChoiceField):
def __init__(self, *args, **kwargs):
Modified: trunk/stats/models.py
==============================================================================
--- trunk/stats/models.py (original)
+++ trunk/stats/models.py Tue Mar 3 15:10:34 2009
@@ -22,14 +22,12 @@
import os, sys, re, hashlib
import threading
from datetime import datetime
-from time import tzname
from django.db import models, connection
from django.utils.translation import ungettext, ugettext as _, ugettext_noop
from django.utils import dateformat
from django.conf import settings
from stats import utils
from stats import signals
-import potdiff
from people.models import Person
from languages.models import Language
Modified: trunk/stats/utils.py
==============================================================================
--- trunk/stats/utils.py (original)
+++ trunk/stats/utils.py Tue Mar 3 15:10:34 2009
@@ -21,9 +21,9 @@
import sys, os, re, time
from itertools import islice
-from subprocess import Popen, PIPE, STDOUT
+from subprocess import Popen, PIPE
-from django.utils.translation import ugettext as _, ugettext_noop
+from django.utils.translation import ugettext_noop
from django.contrib.sites.models import Site
from django.core.mail import send_mail
from django.core.files.base import File
Modified: trunk/teams/forms.py
==============================================================================
--- trunk/teams/forms.py (original)
+++ trunk/teams/forms.py Tue Mar 3 15:10:34 2009
@@ -1,5 +1,5 @@
from django import forms
-from teams.models import Team, ROLE_CHOICES
+from teams.models import ROLE_CHOICES
class EditMemberRoleForm(forms.Form):
@@ -8,9 +8,10 @@
choices = list(ROLE_CHOICES[:-1]) # exclude last element: coordinator
choices.append(('remove','Remove From Team'))
for role in roles:
- self.fields[str(role.pk)] = forms.ChoiceField(choices=choices,
- label = "<a href='%s'>%s</a>" % (role.person.get_absolute_url(), role.person.name),
- initial=role.role)
+ self.fields[str(role.pk)] = forms.ChoiceField(
+ choices=choices,
+ label = "<a href='%s'>%s</a>" % (role.person.get_absolute_url(), role.person.name),
+ initial=role.role)
self.fields['form_type'] = forms.CharField(widget=forms.HiddenInput,
initial=roles[0].role)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]