1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

add user events

This commit is contained in:
lins05
2012-09-24 20:30:17 +08:00
parent 80a84e097a
commit 02870ee552
11 changed files with 212 additions and 2 deletions

View File

@@ -12,6 +12,12 @@ try:
except ImportError:
BUSINESS_MODE = False
try:
from settings import EVENTS_CONFIG_FILE
SHOW_EVENTS = True
except ImportError:
SHOW_EVENTS = False
def base(request):
"""
Add seahub base configure to the context.
@@ -32,5 +38,6 @@ def base(request):
'cloud_mode': request.cloud_mode,
'org': org,
'base_template': base_template,
'show_events': SHOW_EVENTS,
}