Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / vigiboard / websetup.py @ 10848680

History | View | Annotate | Download (452 Bytes)

1
# -*- coding: utf-8 -*-
2
"""Setup the vigiboard application"""
3

    
4
import logging
5

    
6
import transaction
7
from tg import config
8

    
9
from vigiboard.config.environment import load_environment
10
from vigilo.turbogears import populate_db
11

    
12
__all__ = ['setup_app']
13

    
14
log = logging.getLogger(__name__)
15

    
16

    
17
def setup_app(command, conf, variables):
18
    """Place any commands to setup vigiboard here"""
19
    load_environment(conf.global_conf, conf.local_conf)
20
    populate_db()
21