From 73a1bc85f1beb257169c777452eb878fa7e684a1 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 31 May 2011 19:31:23 -0500 Subject: [PATCH] Moving import to outside of this function --- mediagoblin/auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index 15cd65e5..906d6f13 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +import bson.objectid from webob import Response, exc from mediagoblin.auth import lib as auth_lib @@ -148,7 +149,6 @@ def verify_email(request): validates GET parameters against database and unlocks the user account, if you are lucky :) """ - import bson.objectid user = request.db.User.find_one( {'_id': bson.objectid.ObjectId(unicode(request.GET.get('userid')))})