summaryrefslogtreecommitdiffstats
path: root/askbot/const
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-06-07 01:53:53 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-06-07 01:53:53 -0400
commit9f679e83639c642d903eeacde695baef1be44ec1 (patch)
treedd6c5772f77ac43c5044989959c6df678d16408b /askbot/const
parent428c91d505a4a09192f1bbc70f7f1c0c1429cc4b (diff)
parent84e1fc6f99879ede88f2d51df2b2730b5df6ff41 (diff)
downloadaskbot-9f679e83639c642d903eeacde695baef1be44ec1.tar.gz
askbot-9f679e83639c642d903eeacde695baef1be44ec1.tar.bz2
askbot-9f679e83639c642d903eeacde695baef1be44ec1.zip
made moderation dialog work again after the merge
Diffstat (limited to 'askbot/const')
-rw-r--r--askbot/const/__init__.py44
1 files changed, 42 insertions, 2 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py
index f7255455..2bed1c31 100644
--- a/askbot/const/__init__.py
+++ b/askbot/const/__init__.py
@@ -6,6 +6,7 @@ text in this project, all unicode text go here.
"""
from django.utils.translation import ugettext as _
import re
+
CLOSE_REASONS = (
(1, _('duplicate question')),
(2, _('question is off-topic or not relevant')),
@@ -54,12 +55,51 @@ POST_SORT_METHODS = (
POST_TYPES = ('answer', 'comment', 'question', 'tag_wiki', 'reject_reason')
+SIMPLE_REPLY_SEPARATOR_TEMPLATE = '==== %s -=-=='
+
+#values for SELF_NOTIFY_WHEN... settings use bits
+NEVER = 'never'
+FOR_FIRST_REVISION = 'first'
+FOR_ANY_REVISION = 'any'
+SELF_NOTIFY_EMAILED_POST_AUTHOR_WHEN_CHOICES = (
+ (NEVER, _('Never')),
+ (FOR_FIRST_REVISION, _('When new post is published')),
+ (FOR_ANY_REVISION, _('When post is published or revised')),
+)
+#need more options for web posts b/c user is looking at the page
+#when posting. when posts are made by email - user is not looking
+#at the site and therefore won't get any feedback unless an email is sent back
+#todo: rename INITIAL -> FIRST and make values of type string
+#FOR_INITIAL_REVISION_WHEN_APPROVED = 1
+#FOR_ANY_REVISION_WHEN_APPROVED = 2
+#FOR_INITIAL_REVISION_ALWAYS = 3
+#FOR_ANY_REVISION_ALWAYS = 4
+#SELF_NOTIFY_WEB_POST_AUTHOR_WHEN_CHOICES = (
+# (NEVER, _('Never')),
+# (
+# FOR_INITIAL_REVISION_WHEN_APPROVED,
+# _('When inital revision is approved by moderator')
+# ),
+# (
+# FOR_ANY_REVISION_WHEN_APPROVED,
+# _('When any revision is approved by moderator')
+# ),
+# (
+# FOR_INITIAL_REVISION_ALWAYS,
+# _('Any time when inital revision is published')
+# ),
+# (
+# FOR_ANY_REVISION_ALWAYS,
+# _('Any time when revision is published')
+# )
+#)
+
REPLY_SEPARATOR_TEMPLATE = '==== %(user_action)s %(instruction)s -=-=='
REPLY_WITH_COMMENT_TEMPLATE = _(
'Note: to reply with a comment, '
- 'please use <a href="mailto://%(addr)s">this link</a>'
+ 'please use <a href="mailto:%(addr)s?subject=%(subject)s">this link</a>'
)
-REPLY_SEPARATOR_REGEX = re.compile('==== .* -=-==', re.MULTILINE)
+REPLY_SEPARATOR_REGEX = re.compile(r'==== .* -=-==', re.MULTILINE|re.DOTALL)
ANSWER_SORT_METHODS = (#no translations needed here
'latest', 'oldest', 'votes'