backport 3.20 changes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 21 Jun 2016 07:42:30 +0200
changeset 11371 2cc16363d6a3
parent 11224 a4fcee1e9789 (current diff)
parent 11236 241b319ac59c (diff)
child 11372 4482e94daabe
child 11404 98eebbe3de23
backport 3.20 changes
.hgtags
__pkginfo__.py
cubicweb.spec
debian/changelog
server/session.py
web/views/basetemplates.py
--- a/.hgtags	Thu Mar 24 09:43:25 2016 +0100
+++ b/.hgtags	Tue Jun 21 07:42:30 2016 +0200
@@ -542,3 +542,6 @@
 b3cbbb7690b6e193570ffe4846615d372868a923 3.21.6
 b3cbbb7690b6e193570ffe4846615d372868a923 debian/3.21.6-1
 b3cbbb7690b6e193570ffe4846615d372868a923 centos/3.21.6-1
+636a83e65870433c2560f3c49d55ca628bc96e11 3.20.15
+636a83e65870433c2560f3c49d55ca628bc96e11 debian/3.20.15-1
+636a83e65870433c2560f3c49d55ca628bc96e11 centos/3.20.15-1
--- a/debian/changelog	Thu Mar 24 09:43:25 2016 +0100
+++ b/debian/changelog	Tue Jun 21 07:42:30 2016 +0200
@@ -46,6 +46,12 @@
 
  -- Julien Cristau <julien.cristau@logilab.fr>  Fri, 10 Jul 2015 17:04:11 +0200
 
+cubicweb (3.20.15-1) unstable; urgency=medium
+
+  * new upstream release 
+
+ -- David Douard <david.douard@logilab.fr>  Mon, 09 May 2016 17:04:10 +0200
+
 cubicweb (3.20.14-1) unstable; urgency=medium
 
   * new upstream release
--- a/server/session.py	Thu Mar 24 09:43:25 2016 +0100
+++ b/server/session.py	Tue Jun 21 07:42:30 2016 +0200
@@ -1119,7 +1119,7 @@
     # CWUser compat for notification ###########################################
 
     def name(self):
-        return 'cubicweb'
+        return ''
 
     class _IEmailable:
         @staticmethod
--- a/web/views/basetemplates.py	Thu Mar 24 09:43:25 2016 +0100
+++ b/web/views/basetemplates.py	Tue Jun 21 07:42:30 2016 +0200
@@ -508,8 +508,10 @@
                 stitle = u'&#160;'
             w(u'<div class="loginTitle">%s</div>' % stitle)
         w(u'<div class="loginContent">\n')
-        if showmessage and self._cw.message:
-            w(u'<div class="loginMessage">%s</div>\n' % self._cw.message)
+        # don't call self._cw.message twice since it pops the id
+        msg = self._cw.message
+        if showmessage and msg:
+            w(u'<div class="loginMessage">%s</div>\n' % msg)
         config = self._cw.vreg.config
         if config['auth-mode'] != 'http':
             self.login_form(id) # Cookie authentication