damned-lies r1119 - branches/djamnedlies/stats
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1119 - branches/djamnedlies/stats
- Date: Sat, 1 Nov 2008 15:37:56 +0000 (UTC)
Author: stephaner
Date: Sat Nov 1 15:37:55 2008
New Revision: 1119
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1119&view=rev
Log:
2008-11-01 StÃphane Raimbault <stephane raimbault gmail com>
* stats/urls.py: Fixed URL parsing for module and branch
names. Stricter with release ID and team names.
Modified:
branches/djamnedlies/stats/urls.py
Modified: branches/djamnedlies/stats/urls.py
==============================================================================
--- branches/djamnedlies/stats/urls.py (original)
+++ branches/djamnedlies/stats/urls.py Sat Nov 1 15:37:55 2008
@@ -9,16 +9,16 @@
urlpatterns = patterns('stats.views',
(r'^/*$', 'index'),
url(r'^teams/*$', 'teams', name='teams'),
- (r'^teams/(?P<name>.*)$', 'team'),
+ (r'^teams/(?P<name>\w+)$', 'team'),
url(r'^languages/*$', 'languages', name='languages'),
url(r'^languages/(?P<name>\w+)/$', 'team', name='language'),
url(r'^languages/(?P<langcode>\w+)/(?P<release_id>\d+)/$', 'languagerelease', name='languagerelease'),
(r'^people/*$', 'people'),
url(r'^module/*$', 'modules', name='modules'),
- (r'^module/(?P<module_name>[^/]+)$', 'module'),
- (r'^module/(?P<module_name>\w+)/(?P<potbase>\w+)/(?P<branch_name>\w+)/(?P<langcode>\w+)/images/$', 'docimages'),
+ (r'^module/(?P<module_name>(\w|-)+)$', 'module'),
+ (r'^module/(?P<module_name>(\w|-)+)/(?P<potbase>\w+)/(?P<branch_name>(\w|-)+)/(?P<langcode>\w+)/images/$', 'docimages'),
url(r'^releases/*$', 'releases', name='releases'),
- (r'^releases/(?P<release_id>.*)$', 'release'),
+ (r'^releases/(?P<release_id>\d+)$', 'release'),
)
people_dict = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]