1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

fixed "import seafevets" when events disabled

This commit is contained in:
lins05
2012-10-09 11:22:55 +08:00
parent 1c6a40636c
commit 33d3758631
3 changed files with 50 additions and 42 deletions

View File

@@ -76,11 +76,10 @@ from settings import FILE_PREVIEW_MAX_SIZE, INIT_PASSWD
try:
from settings import EVENTS_CONFIG_FILE
from utils import get_seafevents_session
import seafevents
except ImportError:
EVENTS_CONFIG_FILE = None
else:
from utils import get_seafevents_session
@login_required
def root(request):