damned-lies r1170 - in trunk: . languages
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1170 - in trunk: . languages
- Date: Fri, 14 Nov 2008 21:33:14 +0000 (UTC)
Author: claudep
Date: Fri Nov 14 21:33:14 2008
New Revision: 1170
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1170&view=rev
Log:
2008-11-14 Claude Paroz <claude 2xlibre net>
* languages/views.py: Add current date in tar.gz filename.
* urls.py: Permit @ in locale in url.
Modified:
trunk/ChangeLog
trunk/languages/views.py
trunk/urls.py
Modified: trunk/languages/views.py
==============================================================================
--- trunk/languages/views.py (original)
+++ trunk/languages/views.py Fri Nov 14 21:33:14 2008
@@ -21,7 +21,7 @@
import os
import tarfile
-from datetime import datetime
+from datetime import date, datetime
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from stats.conf import settings
@@ -54,7 +54,7 @@
language = get_object_or_404(Language, locale=locale)
last_modif, file_list = release.get_lang_files(language, dtype)
- tar_filename = '%s.%s.%s.tar.gz' % (release.name, dtype, language.locale)
+ tar_filename = '%s.%s.%s.%s.tar.gz' % (release.name, dtype, language.locale, date.today())
tar_directory = os.path.join(settings.POTDIR, 'tar')
if not os.access(tar_directory, os.R_OK):
os.mkdir(tar_directory)
Modified: trunk/urls.py
==============================================================================
--- trunk/urls.py (original)
+++ trunk/urls.py Fri Nov 14 21:33:14 2008
@@ -17,7 +17,7 @@
urlpatterns += patterns('stats.views',
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'),
+ (r'^module/(?P<module_name>[\w\-\+]+)/(?P<potbase>[\w-]+)/(?P<branch_name>[\w-]+)/(?P<langcode>[\w ]+)/images/$', 'docimages'),
url(r'^releases/(?P<format>(html|json|xml))?/?$', 'releases', name='releases'),
(r'^releases/(?P<release_name>[\w-]+)$', 'release'),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]