damned-lies r1080 - in branches/djamnedlies: . stats stats/templates vertimus
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1080 - in branches/djamnedlies: . stats stats/templates vertimus
- Date: Wed, 22 Oct 2008 22:46:54 +0000 (UTC)
Author: stephaner
Date: Wed Oct 22 22:46:54 2008
New Revision: 1080
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1080&view=rev
Log:
2008-10-23 StÃphane Raimbault <stephane raimbault gmail com>
* stats/templates/list-teams.tmpl:
* stats/templates/person-base.tmpl:
* stats/urls.py:
* stats/views.py:
* vertimus/models.py: Fixed using of lang_code for Team.
Modified:
branches/djamnedlies/ChangeLog
branches/djamnedlies/stats/templates/list-teams.tmpl
branches/djamnedlies/stats/templates/person-base.tmpl
branches/djamnedlies/stats/urls.py
branches/djamnedlies/stats/views.py
branches/djamnedlies/vertimus/models.py
Modified: branches/djamnedlies/stats/templates/list-teams.tmpl
==============================================================================
--- branches/djamnedlies/stats/templates/list-teams.tmpl (original)
+++ branches/djamnedlies/stats/templates/list-teams.tmpl Wed Oct 22 22:46:54 2008
@@ -14,7 +14,7 @@
<ul class="foot">
{% for team in teams %}
<li style="font-size: 120%;">
- <a href="{% url stats.views.team team.lang_code %}">{{ team.translated_name }}</a>
+ <a href="{% url stats.views.team team.name %}">{{ team.translated_name }}</a>
{% if team.webpage_url %}
— <a href="{{ team.webpage_url }}">{{ team.webpage_url }}</a>
{% endif %}
Modified: branches/djamnedlies/stats/templates/person-base.tmpl
==============================================================================
--- branches/djamnedlies/stats/templates/person-base.tmpl (original)
+++ branches/djamnedlies/stats/templates/person-base.tmpl Wed Oct 22 22:46:54 2008
@@ -50,7 +50,7 @@
<h2>{% trans "Translates:" %}</h2>
<ul>
{% for team in roles.translates %}
- {% url djamnedlies.stats.views.team team.lang_code as team_url %}
+ {% url djamnedlies.stats.views.team team.name as team_url %}
<li>{% blocktrans with team.description as teamdesc %}Coordinates <a href="{{ team_url }}">{{ teamdesc }}</a>{% endblocktrans %}
{% endfor %}
</ul>
Modified: branches/djamnedlies/stats/urls.py
==============================================================================
--- branches/djamnedlies/stats/urls.py (original)
+++ branches/djamnedlies/stats/urls.py Wed Oct 22 22:46:54 2008
@@ -7,7 +7,7 @@
urlpatterns = patterns('djamnedlies.stats.views',
(r'^/*$', 'index'),
(r'^teams/*$', 'teams'),
- (r'^teams/(?P<langcode>.*)$', 'team'),
+ (r'^teams/(?P<name>.*)$', 'team'),
(r'^languages/*$', 'languages'),
(r'^languages/(?P<langcode>\w+)/$', 'team'),
(r'^languages/(?P<langcode>\w+)/(?P<release_id>\d+)/$', 'languagerelease'),
Modified: branches/djamnedlies/stats/views.py
==============================================================================
--- branches/djamnedlies/stats/views.py (original)
+++ branches/djamnedlies/stats/views.py Wed Oct 22 22:46:54 2008
@@ -47,8 +47,8 @@
'teams': utils.sortObjectList(all_teams, 'description') }
return render_to_response('list-teams.tmpl', context)
-def team(request, langcode):
- team = Team.objects.get(lang_code=langcode)
+def team(request, name):
+ team = Team.objects.get(name=name)
context = {'pageSection': "teams",
'webroot': settings.WEBROOT,
'team': team}
Modified: branches/djamnedlies/vertimus/models.py
==============================================================================
--- branches/djamnedlies/vertimus/models.py (original)
+++ branches/djamnedlies/vertimus/models.py Wed Oct 22 22:46:54 2008
@@ -98,7 +98,7 @@
>>> b.save()
>>> d = Domain(module=m, name='ihm', dtype='ui', directory='dir')
>>> d.save()
- >>> t = Team(lang_code='fr', description='GNOME French Team', coordinator=p)
+ >>> t = Team(name='fr', description='GNOME French Team', coordinator=p)
>>> t.save()
>>> l = Language(name='french', locale='fr', team=t)
>>> l.save()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]