[ui message] fix regression introduced by 7429:ef5165fa99e0, leading to 'None' message displayed in the ui stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 25 May 2011 14:08:29 +0200
branchstable
changeset 7437 a1f48d7c8a03
parent 7435 a2c83140794e
child 7438 ff6ae47bb688
child 7443 c10164464afc
[ui message] fix regression introduced by 7429:ef5165fa99e0, leading to 'None' message displayed in the ui
web/views/basecomponents.py
--- a/web/views/basecomponents.py	Wed May 25 13:36:25 2011 +0200
+++ b/web/views/basecomponents.py	Wed May 25 14:08:29 2011 +0200
@@ -191,7 +191,8 @@
             msgs = []
             if self._cw.cnx:
                 srcmsg = self._cw.get_shared_data('sources_error', pop=True)
-                msgs.append(srcmsg)
+                if srcmsg:
+                    msgs.append(srcmsg)
             reqmsg = self._cw.message # XXX don't call self._cw.message twice
             if reqmsg:
                 msgs.append(reqmsg)