From 39ba65ceb7c3c40a698b42579e96e8eb1eedc5d2 Mon Sep 17 00:00:00 2001 From: Gael Pasgrimaud Date: Sat, 18 Jun 2011 19:29:33 +0200 Subject: [PATCH] fix test --- pyramid_formalchemy/actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid_formalchemy/actions.py b/pyramid_formalchemy/actions.py index 17ea832..ade111a 100644 --- a/pyramid_formalchemy/actions.py +++ b/pyramid_formalchemy/actions.py @@ -198,8 +198,8 @@ class Languages(Actions): >>> request.cookies['_LOCALE_'] = 'fr' >>> request.route_url = lambda name, _query: 'http://localhost/set_language?_LOCALE_=%(_LOCALE_)s' % _query >>> print langs.render(request) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE -
  • French
  • -
  • English
  • +
  • French
  • +
  • English
  • """ translations = { @@ -212,7 +212,7 @@ class Languages(Actions): klass=kwargs.get('class_', ListItem) for l in args: self.append( - klass(id=l, + klass(id='lang_%s' % l, content=self.translations.get(l, _(l)), attrs={ 'class':"string:lang_%s ${request.cookies.get('_LOCALE_') == '%s' and 'lang_active' or ''}" % (l, l), 'href':"request.route_url('set_language', _query={'_LOCALE_': '%s'})" % l