summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-01-08 15:01:21 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-01-08 15:01:21 -0600
commit95988ff46553633ca856a3fc986740c25dcc6fd2 (patch)
treec677f66dc506860a131864078e005ce4fdeb695d
parent7b360886823dd0665cf73e5f22ffc1c0a9b4bdd6 (diff)
downloadaskbot-95988ff46553633ca856a3fc986740c25dcc6fd2.tar.gz
askbot-95988ff46553633ca856a3fc986740c25dcc6fd2.tar.bz2
askbot-95988ff46553633ca856a3fc986740c25dcc6fd2.zip
uncommenting lines
-rw-r--r--askbot/models/__init__.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py
index 2915c0f3..751bbce6 100644
--- a/askbot/models/__init__.py
+++ b/askbot/models/__init__.py
@@ -1346,11 +1346,10 @@ def user_mark_tags(
cleaned_wildcards = list()
assert(action in ('add', 'remove'))
if action == 'add':
- assert(reason in ('good', 'bad', 'subscribed'))
- #if askbot_settings.SUBSCRIBED_TAG_SELECTOR_ENABLED:
- # assert(reason in ('good', 'bad', 'subscribed'))
- #else:
- # assert(reason in ('good', 'bad'))
+ if askbot_settings.SUBSCRIBED_TAG_SELECTOR_ENABLED:
+ assert(reason in ('good', 'bad', 'subscribed'))
+ else:
+ assert(reason in ('good', 'bad'))
if wildcards:
cleaned_wildcards = self.update_wildcard_tag_selections(
action = action,