email is no crypted anymore in foaf view
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Tue, 10 Feb 2009 17:45:16 +0100
changeset 568 3f6aaa6ae3b2
parent 567 49a66268c1a7
child 569 94e2202ee9c3
child 850 b747f1a1ced0
email is no crypted anymore in foaf view
web/views/euser.py
--- a/web/views/euser.py	Tue Feb 10 14:39:59 2009 +0100
+++ b/web/views/euser.py	Tue Feb 10 17:45:16 2009 +0100
@@ -72,10 +72,7 @@
                    % html_escape(entity.firstname))
         emailaddr = entity.get_email()
         if emailaddr:
-            m = sha()
-            m.update(html_escape(emailaddr))
-            crypt_sha1 = m.hexdigest()
-            self.w(u'<foaf:mbox_sha1sum>%s</foaf:mbox_sha1sum>\n' % crypt_sha1)
+            self.w(u'<foaf:mbox>%s</foaf:mbox>\n' % html_escape(unicode(emailaddr)))
             self.w(u'</foaf:Person>\n')