small fix
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Wed, 11 Feb 2009 17:42:30 +0100
changeset 586 09ec2839e447
parent 585 23c2f934b669
child 587 c8ff5d88f164
small fix
web/views/euser.py
--- a/web/views/euser.py	Wed Feb 11 17:41:46 2009 +0100
+++ b/web/views/euser.py	Wed Feb 11 17:42:30 2009 +0100
@@ -14,11 +14,6 @@
 from cubicweb.web.form import EntityForm
 from cubicweb.web.views.baseviews import PrimaryView, EntityView
 
-try:
-    from hashlib import sha1 as sha 
-
-except ImportError:
-    from sha import sha
 
 class EUserPrimaryView(PrimaryView):
     accepts = ('EUser',)
@@ -72,8 +67,8 @@
                    % html_escape(entity.firstname))
         emailaddr = entity.get_email()
         if emailaddr:
-            self.w(u'<foaf:mbox>%s</foaf:mbox>\n' % html_escape(unicode(emailaddr)))
-            self.w(u'</foaf:Person>\n')
+            self.w(u'<foaf:mbox>%s</foaf:mbox>\n' % html_escape(emailaddr))
+        self.w(u'</foaf:Person>\n')
 
 
 class EditGroups(EntityForm):