damned-lies r1120 - branches/djamnedlies/stats



Author: stephaner
Date: Sat Nov  1 16:50:27 2008
New Revision: 1120
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1120&view=rev

Log:
2008-11-01  StÃphane Raimbault  <stephane raimbault gmail com>

	* stats/urls.py: Removed incorrect '*' in regexp on toplevel
	URL (repeats the previous expression). Use simpler [\w-] instead
	of (\w|-).


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 16:50:27 2008
@@ -7,17 +7,17 @@
 admin.autodiscover()
 
 urlpatterns = patterns('stats.views',
-    (r'^/*$', 'index'),
-    url(r'^teams/*$', 'teams', name='teams'),
+    (r'^$', 'index'),
+    url(r'^teams/$', 'teams', name='teams'),
     (r'^teams/(?P<name>\w+)$', 'team'),
-    url(r'^languages/*$', 'languages', name='languages'),
+    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>(\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'^people/$', 'people'),
+    url(r'^module/$', 'modules', name='modules'),
+    (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>\d+)$', 'release'),
 )
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]