summaryrefslogtreecommitdiff
path: root/chimere/main/actions.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-13 01:56:39 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-13 01:56:39 +0100
commitf1f3725d615a51b26b9928a21930939283713472 (patch)
tree16262ca7b62c727cf520c3f2cec4f3a116cebdba /chimere/main/actions.py
parent128a0f653640602a51e0d59b7cb5bad088d98c15 (diff)
downloadChimère-1.0.0.tar.bz2
Chimère-1.0.0.zip
Manage an application with no email server setv1.0.0
Diffstat (limited to 'chimere/main/actions.py')
-rw-r--r--chimere/main/actions.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/chimere/main/actions.py b/chimere/main/actions.py
index 4857005..f86e954 100644
--- a/chimere/main/actions.py
+++ b/chimere/main/actions.py
@@ -23,16 +23,16 @@ Actions available in the main interface
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import models
-from chimere.settings import EXTRA_URL
+from chimere.settings import EXTRA_URL, EMAIL_HOST
class Action:
def __init__(self, id, path, label):
self.id, self.path, self.label = id, path, label
-actions = ((Action('view', '', _('View')), []),
+actions = [(Action('view', '', _('View')), []),
(Action('contribute', 'edit', _('Contribute')),
(Action('edit', 'edit', _('Add a new point of interest')),
Action('edit_route', 'edit_route', _('Add a new route')))
- ),
- (Action('contact', 'contact', _('Contact us')), []),
- )
+ ),]
+if EMAIL_HOST:
+ actions.append((Action('contact', 'contact', _('Contact us')), []),)