diff options
author | Andrei <mamoutkine@gmail.com> | 2011-03-21 13:49:59 -0400 |
---|---|---|
committer | Andrei <mamoutkine@gmail.com> | 2011-03-21 13:49:59 -0400 |
commit | 12bac971fa97b57824a7f5c12541714b678c7e73 (patch) | |
tree | 58eff3a1dcd683933f08b3761d621f39b248fba5 /askbot/const/__init__.py | |
parent | 4efd60422e2973057368036afa01a24380c2480f (diff) | |
download | askbot-12bac971fa97b57824a7f5c12541714b678c7e73.tar.gz askbot-12bac971fa97b57824a7f5c12541714b678c7e73.tar.bz2 askbot-12bac971fa97b57824a7f5c12541714b678c7e73.zip |
added display tag filter strategy - instead of just hide ignored
Diffstat (limited to 'askbot/const/__init__.py')
-rw-r--r-- | askbot/const/__init__.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py index 608cde43..f48c5c76 100644 --- a/askbot/const/__init__.py +++ b/askbot/const/__init__.py @@ -191,10 +191,14 @@ POST_STATUS = { 'retagged' : _('retagged'), } -#how to filter questions by tags in email digests? -TAG_EMAIL_FILTER_CHOICES = ( - ('ignored', _('exclude ignored tags')), - ('interesting',_('allow only selected tags')) +#choices used in email and display filters +INCLUDE_ALL = 0 +EXCLUDE_IGNORED = 1 +INCLUDE_INTERESTING = 2 +TAG_FILTER_STRATEGY_CHOICES = ( + (INCLUDE_ALL, _('off')), + (EXCLUDE_IGNORED, _('exclude ignored')), + (INCLUDE_INTERESTING, _('only selected')), ) NOTIFICATION_DELIVERY_SCHEDULE_CHOICES= ( |