Hello,
I propose the following changes to pyramid/config/routes.py:
372c372,375
pattern = self.route_prefix.rstrip('/') + '/' +
pattern.lstrip('/')
---
if pattern:
pattern = self.route_prefix.rstrip('/') + '/' +
pattern.lstrip('/')
else:
On 06/27/2012 05:26 AM, abrinner wrote:
Hello,
I propose the following changes to pyramid/config/routes.py:
372c372,375
pattern = self.route_prefix.rstrip('/') + '/' +
pattern.lstrip('/')
---
if pattern:
pattern = self.route_prefix.rstrip('/') + '/'
On 06/27/2012 12:34 PM, Alexey Luchko wrote:
Hi!
I've found colander translates error messages of exceptions :) It is
cool and rather surprising, but is not always required.
I'd like to use colander, but translationstring adds one extra
dependency, that is useless for me. Please, could you
On 27.06.2012 19:39, Chris McDonough wrote:
On 06/27/2012 12:34 PM, Alexey Luchko wrote:
I've found colander translates error messages of exceptions :) It is
cool and rather surprising, but is not always required.
I'd like to use colander, but translationstring adds one extra
dependency, that
translationstring installs these files, and it has no dependencies on
Plone or any other package outside the standand library.
cat translationstring-1.1-py2.7.egg-info/installed-files.txt
../translationstring/__init__.py
../translationstring/compat.py
../translationstring/tests/__init__.py
On 27.06.2012 21:01, Alexey Luchko wrote:
translationstring import could be rewritten like
try:
import translationstring
except ImportError:
_ = lamba x: x
else:
_ = translationstring.TranslationStringFactory('colander')
,
isn't it?
Sorry, (lambda x: x) won't work. It could be