better transliteration in slugs, thanks winniehell

This commit is contained in:
mdipierro
2014-03-02 17:45:45 -06:00
parent 3ad7ea6df8
commit 6cd2bf9fea
4 changed files with 10 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@
- allow URL(...,language=...) with parametric router, thanks Jonathan
- allow non-expiration of gae-memcache, thanks crimsoncantab
- MARKMIN(...,_class='...'), thanks Luca
- better transliteration in building slugs
- autolink emails
- new Janrain API, thanks PeterQ2
- enable admin app for GAE (experimental), thanks Alan
+1 -1
View File
@@ -1 +1 @@
Version 2.9.1-stable+timestamp.2014.03.02.17.18.31
Version 2.9.1-stable+timestamp.2014.03.02.17.44.56
+6 -1
View File
@@ -658,7 +658,12 @@ class translator(object):
set_plural(language)
self.accepted_language = language
return languages
self.accepted_language = language or self.current_languages[0]
self.accepted_language = language
if not language:
if self.current_languages:
self.accepted_language = self.current_languages[0]
else:
self.accepted_language = DEFAULT_LANGUAGE
self.language_file = self.default_language_file
self.cache = global_language_cache.setdefault(self.language_file,
({}, RLock()))
+2 -1
View File
@@ -20,7 +20,8 @@ import decimal
from cStringIO import StringIO
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
from gluon.dal import FieldVirtual, FieldMethod
from gluon.contrib import translitcodec
regex_isint = re.compile('^[+-]?\d+$')
JSONErrors = (NameError, TypeError, ValueError, AttributeError,