diff -r dafa39be525d -r ae95c3241226 web/views/basetemplates.py --- a/web/views/basetemplates.py Tue Feb 16 14:39:28 2010 +0100 +++ b/web/views/basetemplates.py Tue Feb 16 14:39:51 2010 +0100 @@ -466,6 +466,7 @@ class LogForm(forms.FieldsForm): __regid__ = 'logform' domid = 'loginForm' + needs_css = ('cubicweb.login.css',) # XXX have to recall fields name since python is mangling __login/__password __login = ff.StringField('__login', widget=fw.TextInput({'class': 'data'})) __password = ff.StringField('__password', label=_('password'), @@ -485,7 +486,6 @@ title = 'log in' def call(self, id, klass, title=True, showmessage=True): - self._cw.add_css('cubicweb.login.css') self.w(u'