req.py
changeset 8579 c4673bc11053
parent 8544 3d049071957e
child 8595 01e1e44f1eb3
--- a/req.py	Thu Sep 20 16:33:51 2012 +0200
+++ b/req.py	Thu Oct 11 18:42:13 2012 +0200
@@ -318,21 +318,12 @@
     def user_data(self):
         """returns a dictionary with this user's information"""
         userinfo = {}
-        if self.is_internal_session:
-            userinfo['login'] = "cubicweb"
-            userinfo['name'] = "cubicweb"
-            userinfo['email'] = ""
-            return userinfo
         user = self.user
         userinfo['login'] = user.login
         userinfo['name'] = user.name()
         userinfo['email'] = user.cw_adapt_to('IEmailable').get_email()
         return userinfo
 
-    def is_internal_session(self):
-        """overrided on the server-side"""
-        return False
-
     # formating methods #######################################################
 
     def view(self, __vid, rset=None, __fallback_oid=None, __registry='views',