1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 14:21:23 +00:00

add api to create a dir with parents

This commit is contained in:
Shuai Lin
2015-09-12 10:33:38 +08:00
parent 3b00b7cf83
commit 3287f4448a
4 changed files with 54 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ import re
from collections import defaultdict
from functools import wraps
from seahub import settings
from django.core.paginator import EmptyPage, InvalidPage
from django.http import HttpResponse
@@ -554,3 +555,6 @@ def to_python_boolean(string):
if string in ('f', 'false', '0'):
return False
raise ValueError("Invalid boolean value: '%s'" % string)
def is_seafile_pro():
return any(['seahub_extra' in app for app in settings.INSTALLED_APPS])