web/views/basecomponents.py
changeset 3659 993997b4b41d
parent 3451 6b46d73823f5
child 3890 d7a270f50f54
equal deleted inserted replaced
3658:d8f2ec7e91fa 3659:993997b4b41d
   106             box.render(w=self.w)
   106             box.render(w=self.w)
   107         else:
   107         else:
   108             self.anon_user_link()
   108             self.anon_user_link()
   109 
   109 
   110     def anon_user_link(self):
   110     def anon_user_link(self):
   111         if self._cw.config['auth-mode'] == 'cookie':
   111         if self._cw.vreg.config['auth-mode'] == 'cookie':
   112             self.w(self._cw._('anonymous'))
   112             self.w(self._cw._('anonymous'))
   113             self.w(u'''&#160;[<a class="logout" href="javascript: popupLoginBox();">%s</a>]'''
   113             self.w(u'''&#160;[<a class="logout" href="javascript: popupLoginBox();">%s</a>]'''
   114                    % (self._cw._('i18n_login_popup')))
   114                    % (self._cw._('i18n_login_popup')))
   115         else:
   115         else:
   116             self.w(self._cw._('anonymous'))
   116             self.w(self._cw._('anonymous'))