diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-07-18 04:00:15 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-07-18 04:00:15 -0400 |
commit | 2cad0b5d765811aa6001b8dd37a8d66235a278cf (patch) | |
tree | 12ab48cf80784876a3c63184f807ff5a9161c29b /askbot/exceptions.py | |
parent | 40037871f57ec0fe81c543dbad587d8c370e5a94 (diff) | |
download | askbot-2cad0b5d765811aa6001b8dd37a8d66235a278cf.tar.gz askbot-2cad0b5d765811aa6001b8dd37a8d66235a278cf.tar.bz2 askbot-2cad0b5d765811aa6001b8dd37a8d66235a278cf.zip |
added option to limit one answer per question per person
Diffstat (limited to 'askbot/exceptions.py')
-rw-r--r-- | askbot/exceptions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/askbot/exceptions.py b/askbot/exceptions.py index d2d5ddf0..12802e7e 100644 --- a/askbot/exceptions.py +++ b/askbot/exceptions.py @@ -19,6 +19,11 @@ class InsufficientReputation(exceptions.PermissionDenied): """ pass +class AnswerAlreadyGiven(exceptions.PermissionDenied): + """Raised when user attempts to post a second answer + to the same question""" + pass + class DuplicateCommand(exceptions.PermissionDenied): """exception class to indicate that something that can happen only once was attempted for the second time |