# HG changeset patch # User Laure Bourgois # Date 1233914741 -3600 # Node ID 8bb60606e5adcef2e4cc2ef001b147c46de9ad4d # Parent 64d26324d3eb6027098301ef3548a36db49d9198 small fix diff -r 64d26324d3eb -r 8bb60606e5ad web/views/euser.py --- a/web/views/euser.py Thu Feb 05 18:09:11 2009 +0100 +++ b/web/views/euser.py Fri Feb 06 11:05:41 2009 +0100 @@ -13,12 +13,15 @@ from cubicweb.web import INTERNAL_FIELD_VALUE from cubicweb.web.form import EntityForm from cubicweb.web.views.baseviews import PrimaryView, EntityView - + +import hashlib + try: - from hashlib import sha1 as sha + from hashlib import sha1 + +except ImportError: + from sha import sha as sha1 -except ImportError: - from sha import sha class EUserPrimaryView(PrimaryView): accepts = ('EUser',)