From 1c16316b721117bef9387ba181b49557777a5bc9 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 23 Aug 2012 18:06:56 -0400 Subject: added js patch for the noscript tag to hide red margin on IE and disabled Lamson on Windows --- askbot/__init__.py | 6 +++++- askbot/doc/source/changelog.rst | 1 + askbot/doc/source/optional-modules.rst | 5 +++++ askbot/setup_templates/settings.py | 1 + askbot/setup_templates/settings.py.mustache | 1 + .../skins/default/templates/meta/bottom_scripts.html | 6 ++++++ .../default/templates/widgets/user_navigation.html | 2 +- askbot/startup_procedures.py | 19 +++++++++++++++++++ askbot/utils/forms.py | 5 ++++- askbot_requirements.txt | 1 + 10 files changed, 44 insertions(+), 3 deletions(-) diff --git a/askbot/__init__.py b/askbot/__init__.py index 8e4f20ab..51b7c24f 100644 --- a/askbot/__init__.py +++ b/askbot/__init__.py @@ -5,6 +5,7 @@ Functions in the askbot module perform various basic actions on behalf of the forum application """ import os +import platform VERSION = (0, 7, 43) @@ -30,10 +31,13 @@ REQUIREMENTS = { 'recaptcha_works': 'django-recaptcha-works', 'openid': 'python-openid', 'pystache': 'pystache==0.3.1', - 'lamson': 'Lamson', 'pytz': 'pytz', + 'longerusername': 'longerusername', } +if platform.system() != 'Windows': + REQUIREMENTS['lamson'] = 'Lamson' + #necessary for interoperability of django and coffin try: from askbot import patches diff --git a/askbot/doc/source/changelog.rst b/askbot/doc/source/changelog.rst index d88cd734..9d28dd5f 100644 --- a/askbot/doc/source/changelog.rst +++ b/askbot/doc/source/changelog.rst @@ -3,6 +3,7 @@ Changes in Askbot Development version ------------------- +* Allow user names longer than 30 characters (Evgeny) * Option to disable feedback form for the anonymos users (Evgeny) * Optional restriction to have confirmed email address to join forum (Evgeny) * Optional list of allowed email addresses and email domain name for the new users (Evgeny) diff --git a/askbot/doc/source/optional-modules.rst b/askbot/doc/source/optional-modules.rst index 25bb5cc8..3dc2b5ae 100644 --- a/askbot/doc/source/optional-modules.rst +++ b/askbot/doc/source/optional-modules.rst @@ -216,6 +216,11 @@ Askbot supports posting replies by email. For this feature to work ``Lamson`` a pip install django-lamson +.. note:: + On Windows installation of the Lamson module may require + additional work. Askbot does not support this feature + on Windows automatically. + The lamson daemon needs a folder to store it's mail queue files and a folder to store log files, create the folders folder named ``run`` and ``logs`` within your project folder by executing the following commands: mkdir run diff --git a/askbot/setup_templates/settings.py b/askbot/setup_templates/settings.py index 632c4e70..3b1f6bf5 100644 --- a/askbot/setup_templates/settings.py +++ b/askbot/setup_templates/settings.py @@ -150,6 +150,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( INSTALLED_APPS = ( + 'longerusername', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', diff --git a/askbot/setup_templates/settings.py.mustache b/askbot/setup_templates/settings.py.mustache index 18ac214d..69b030ed 100644 --- a/askbot/setup_templates/settings.py.mustache +++ b/askbot/setup_templates/settings.py.mustache @@ -149,6 +149,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( INSTALLED_APPS = ( + 'longerusername', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', diff --git a/askbot/skins/default/templates/meta/bottom_scripts.html b/askbot/skins/default/templates/meta/bottom_scripts.html index 6c132203..1bcdca1f 100644 --- a/askbot/skins/default/templates/meta/bottom_scripts.html +++ b/askbot/skins/default/templates/meta/bottom_scripts.html @@ -6,6 +6,12 @@ +