Suppress the hidden logform when the user is already connected
by adding a conditionned logform
--- a/web/views/basetemplates.py Thu Mar 04 08:50:21 2010 +0100
+++ b/web/views/basetemplates.py Thu Mar 04 08:50:27 2010 +0100
@@ -391,8 +391,9 @@
self.w(u'<td id="lastcolumn">')
self.w(u'</td>\n')
self.w(u'</tr></table>\n')
- self.wview('logform', rset=self.cw_rset, id='popupLoginBox', klass='hidden',
- title=False, showmessage=False)
+ if self._cw.cnx.anonymous_connection:
+ self.wview('logform', rset=self.cw_rset, id='popupLoginBox',
+ klass='hidden', title=False, showmessage=False)
def state_header(self):
state = self._cw.search_state