23 lines
629 B
Python
23 lines
629 B
Python
|
#-*-coding:utf-8-*-
|
||
|
###########################################################################
|
||
|
#
|
||
|
# mon_appli.py
|
||
|
#
|
||
|
###########################################################################
|
||
|
"""
|
||
|
Configuration pour la création de la base de données de mon appli
|
||
|
"""
|
||
|
from eolesql.db_test import db_exists, test_var
|
||
|
|
||
|
gogs_TABLEFILENAMES = [ '/usr/share/eole/mysql/eole-gogs/gen/00-create-gogs-db.sql' ]
|
||
|
|
||
|
def test():
|
||
|
"""
|
||
|
test l'existence de la base de donnée zarafa
|
||
|
"""
|
||
|
return test_var('activer_gogs') and not db_exists('gogs')
|
||
|
|
||
|
conf_dict = dict(filenames=gogs_TABLEFILENAMES,
|
||
|
test=test)
|
||
|
|