fix: do not try to fill the 'Until date' field if the ARmessage is None. (which is true when no message has been defined yet).

fix: no symlink anymore for extensions' templates directory.
wip: documention update.
This commit is contained in:
tonio
2010-10-21 16:42:19 +02:00
parent 40161a0163
commit 95991756c5
16 changed files with 18 additions and 2 deletions
+15
View File
@@ -7,6 +7,7 @@ Requirements
- Python version 2.6+
- Django version 1.2+ (http://docs.djangoproject.com/en/dev/intro/install/#intro-install)
- south version 0.7+ (http://south.aeracode.org/)
- ckeditor version 3.4.1+ (http://ckeditor.com/)
How to install
--------------
@@ -46,6 +47,20 @@ First, decompress the new tarball at the same location than your
current installation. Then, check if the new version you're installing
requires a migration::
0.8.1 -> 0.8.2 : ckeditor integration.
* Download the latest release of ckeditor and extract it into
<modoboa_dir>/static/js/. It should create a new folder named
'ckeditor'.
* Update your config file. First, update the following variables::
MEDIA_ROOT = os.path.join(MODOBOA_DIR, '/static')
MEDIA_URL = '/static/'
* Then, delete the following variables: STATIC_ROOTDIR and
TEMPLATE_CONTEXT_PROCESSORS.
0.8 -> 0.8.1 : project renamed.
* First, rename your mailng folder to modoboa and copy all the
+2 -1
View File
@@ -43,7 +43,8 @@ def autoreply(request):
mimetype="application/json")
form = ARmessageForm(instance=arm)
form.fields['untildate'].initial = arm.untildate
if arm is not None:
form.fields['untildate'].initial = arm.untildate
return _render(request, "postfix_autoreply/autoreply.html", {
"form" : form
})
+1 -1
View File
@@ -9,7 +9,7 @@ def usage():
sys.exit(1)
def update_extension(name, extdir, state):
for d in ['templates', 'scripts']:
for d in ['scripts']:
if not os.path.isdir("%s/%s" % (extdir, d)):
continue
cmd = state == "on" \