aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-05-31 19:31:23 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-05-31 19:31:23 -0500
commit73a1bc85f1beb257169c777452eb878fa7e684a1 (patch)
tree5d84d51c4736ac8d5c82517567f4c2cc6ea558fc
parenta72c504b257c7e2a2c3fec7da67bad5e0f6095be (diff)
downloadmediagoblin-73a1bc85f1beb257169c777452eb878fa7e684a1.tar.lz
mediagoblin-73a1bc85f1beb257169c777452eb878fa7e684a1.tar.xz
mediagoblin-73a1bc85f1beb257169c777452eb878fa7e684a1.zip
Moving import to outside of this function
-rw-r--r--mediagoblin/auth/views.py2
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
+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')))})