Tue, 02 Mar 2010 21:48:36 +0100 [F] views: fix 2 unicode errors stable
Julien Jehannet <Julien Jehannet <julien.jehannet@logilab.fr>> [Tue, 02 Mar 2010 21:48:36 +0100] rev 4783
[F] views: fix 2 unicode errors 1. You can now use valid unicode strings in ValidationError exception. Previously, if 'err' contains unicode, UnicodeDecodeError was raised by format_errors() >>> templstr = '<li>%s</li>\n' >>> e = ValidationError(None, {None: u'oué, une exception en unicode!'}) >>> templstr % e '<li>None (None): ou\xc3\xa9, une exception en unicode!</li>\n' >>> templstr = u'<li>%s</li>\n' >>> templstr % e u'<li>None (None): ou\xe9, une exception en unicode!</li>\n' 2. The message of an Exception can contains unicode. But it now properly managed by “informal” string representation. We can easily fix the problem by using the Exception.message attribute that still contains the original message. >>> a = AssertionError(u'séfdsdf') >>> a.message u's\xe9fdsdf' >>> str(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128) >>> a = ValueError(u'fsdfsdéfsdfs') >>> str(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 6: ordinal not in range(128) >>> a ValueError(u'fsdfsd\xe9fsdfs',) >>> unicode(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 6: ordinal not in range(128) >>> a.message u'fsdfsd\xe9fsdfs'
Mon, 22 Feb 2010 17:23:46 +0100 le patch fix-3.6-deprecation-warning a été importé stable
Julien Jehannet <julien.jehannet@logilab.fr> [Mon, 22 Feb 2010 17:23:46 +0100] rev 4782
le patch fix-3.6-deprecation-warning a été importé
Thu, 04 Mar 2010 08:50:27 +0100 Suppress the hidden logform when the user is already connected stable
Alain Leufroy <alain.leufroy@logilab.fr> [Thu, 04 Mar 2010 08:50:27 +0100] rev 4781
Suppress the hidden logform when the user is already connected by adding a conditionned logform
Thu, 04 Mar 2010 08:50:21 +0100 fix a Depression Warning stable
Alain Leufroy <alain.leufroy@logilab.fr> [Thu, 04 Mar 2010 08:50:21 +0100] rev 4780
fix a Depression Warning replace self.req._(... by self._cw._(...
Thu, 04 Mar 2010 08:50:03 +0100 fix: Prevent multi pass in restore_previous_post stable
Alain Leufroy <alain.leufroy@logilab.fr> [Thu, 04 Mar 2010 08:50:03 +0100] rev 4779
fix: Prevent multi pass in restore_previous_post by adding a conditional return add the top of the methode.
Thu, 04 Mar 2010 08:48:51 +0100 merge stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 04 Mar 2010 08:48:51 +0100] rev 4778
merge
Wed, 03 Mar 2010 19:20:03 +0100 [test] check _shutting_down, not empty dict (empty dict test should go in pytestgc patch)
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 03 Mar 2010 19:20:03 +0100] rev 4777
[test] check _shutting_down, not empty dict (empty dict test should go in pytestgc patch)
Wed, 03 Mar 2010 19:03:52 +0100 assert we are not already shutting down
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 03 Mar 2010 19:03:52 +0100] rev 4776
assert we are not already shutting down
Wed, 03 Mar 2010 19:02:36 +0100 [test] call super class teardown after perms restoration
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 03 Mar 2010 19:02:36 +0100] rev 4775
[test] call super class teardown after perms restoration
Wed, 03 Mar 2010 18:57:41 +0100 [test] get a chance to get proper garbage collection when running pytest on whole cw
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 03 Mar 2010 18:57:41 +0100] rev 4774
[test] get a chance to get proper garbage collection when running pytest on whole cw
(0) -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 +3000 tip