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

Merge pull request #1165 from haiwen/remove_unused_seafevents_settings

Remove unused code for seafevents in settings.py
This commit is contained in:
Daniel Pan
2016-04-29 11:44:05 +08:00

View File

@@ -513,27 +513,6 @@ ENABLE_SUDO_MODE = True
SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER = True # Whether to send email when a system staff adding new member. SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER = True # Whether to send email when a system staff adding new member.
SEND_EMAIL_ON_RESETTING_USER_PASSWD = True # Whether to send email when a system staff resetting user's password. SEND_EMAIL_ON_RESETTING_USER_PASSWD = True # Whether to send email when a system staff resetting user's password.
##########################
# Settings for seafevents #
##########################
def get_events_conf_file():
if not 'CCNET_CONF_DIR' in os.environ:
return
ccnet_dir = os.environ['CCNET_CONF_DIR']
seafile_ini = os.path.join(ccnet_dir, 'seafile.ini')
if not os.path.exists(seafile_ini):
return
with open(seafile_ini, 'r') as fp:
seafile_data_dir = fp.read().strip()
seafevents_conf = os.path.join(seafile_data_dir, 'seafevents.conf')
if os.path.exists(seafevents_conf):
globals()['EVENTS_CONFIG_FILE'] = seafevents_conf
get_events_conf_file()
########################## ##########################
# Settings for Extra App # # Settings for Extra App #
########################## ##########################