aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2011-07-04 10:23:24 +0300
committerTheo Chatzimichos <tampakrap@gentoo.org>2011-07-04 10:23:24 +0300
commit48944ae9625cf36457b053508eff1e189c64f2c4 (patch)
treee35a25fee83defb3aac5132d2509cac866ff8933
parentSmall fix to follow checkConfirmationKey's changes (diff)
downloadidentity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.tar.gz
identity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.tar.bz2
identity.gentoo.org-48944ae9625cf36457b053508eff1e189c64f2c4.zip
Fix bug in checkConfirmationKey, call the model directly instead of
eval(arg)
-rw-r--r--libraries/verification.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/verification.py b/libraries/verification.py
index 5c5ad5d..e0b9e6f 100644
--- a/libraries/verification.py
+++ b/libraries/verification.py
@@ -30,7 +30,7 @@ def checkConfirmationKey(key, model):
Check if the URL matches any of the confirmation keys in the database
'''
try:
- result = eval(model).objects.get(url = key)
- except eval(model).DoesNotExist as error:
+ result = model.objects.get(url = key)
+ except model.DoesNotExist:
raise OkupyException('URL not found')
return result