[web] update to 3.9 Entity api
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 May 2010 14:37:32 +0200
changeset 5591 c6edefa9b3f1
parent 5590 a56eb02f9ce7
child 5594 fe7d84363d23
[web] update to 3.9 Entity api
web/application.py
--- a/web/application.py	Wed May 26 12:33:48 2010 +0200
+++ b/web/application.py	Wed May 26 14:37:32 2010 +0200
@@ -235,7 +235,7 @@
     def _update_last_login_time(self, req):
         # XXX should properly detect missing permission / non writeable source
         # and avoid "except (RepositoryError, Unauthorized)" below
-        if req.user.metainformation()['source']['adapter'] == 'ldapuser':
+        if req.user.cw_metainformation()['source']['adapter'] == 'ldapuser':
             return
         try:
             req.execute('SET X last_login_time NOW WHERE X eid %(x)s',