summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasil Vangelovski <vvangelovski@gmail.com>2012-01-15 18:56:37 +0100
committerVasil Vangelovski <vvangelovski@gmail.com>2012-01-15 18:56:37 +0100
commit1346f75c096c0995d2698ed3f3c4803015aa8d0f (patch)
tree8b5879c8853fc3febc99866c2ce3a485dd087438
parent76568d4c401c1787d21637fd0f7e944ae8ce200b (diff)
downloadaskbot-1346f75c096c0995d2698ed3f3c4803015aa8d0f.tar.gz
askbot-1346f75c096c0995d2698ed3f3c4803015aa8d0f.tar.bz2
askbot-1346f75c096c0995d2698ed3f3c4803015aa8d0f.zip
Defined live settings options for the reply by email feature
-rw-r--r--askbot/conf/email.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/askbot/conf/email.py b/askbot/conf/email.py
index 3db80e7a..13c079ef 100644
--- a/askbot/conf/email.py
+++ b/askbot/conf/email.py
@@ -264,3 +264,30 @@ settings.register(
)
)
)
+
+
+
+settings.register(
+ livesettings.BooleanValue(
+ EMAIL,
+ 'REPLY_BY_EMAIL',
+ default = False,
+ description=_('Enable posting answers and comments by email'),
+ #TODO give a better explanation depending on lamson startup procedure
+ help_text=_(
+ 'To enable this feature make sure lamson is running'
+
+ )
+ )
+)
+
+
+settings.register(
+ livesettings.IntegerValue(
+ EMAIL,
+ 'MIN_WORDS_FOR_ANSWER_BY_EMAIL',
+ default=14,
+ description=_('Email replies having fewer words than this number will be posted as comments instead of answers')
+ )
+)
+