Changeset 14153 for trunk


Ignore:
Timestamp:
04/24/12 17:27:43 (12 years ago)
Author:
sil
Message:

Moved cmt.conf and logging.conf to the 'etc'-dir and (temporary) hardcoded it in the sources. Have to make this dynamic soon.

Location:
trunk/sara_cmt
Files:
1 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/MANIFEST.in

    r14151 r14153  
    1 #include AUTHORS
    2 ##include cmt.py
     1include AUTHORS CHANGES README
     2include bin/cmt
    33recursive-include etc *
    4 #include config/cmt.conf
    5 include sara_cmt/logging.conf
    64#include sara_cmt/apache/django.wsgi
    75recursive-include templates/examples header *.cmt
    8 #exclude sara_cmt/settings_db.py
     6#exclude sara_cmt/settings_db.py # only comment out during testing
  • trunk/sara_cmt/bin/cmt

    r14152 r14153  
    7979
    8080# Instantiate ConfigParser
    81 configfile = os.path.join(settings.PROJECT_BASE, '/etc/cmt/cmt.conf')
     81#TODO: make this dynamic
     82configfile = '/etc/cmt/cmt.conf'
    8283config_parser = ConfigParser.ConfigParser()
    8384config_parser.optionxform = lambda x: x
  • trunk/sara_cmt/sara_cmt/logger.py

    r11798 r14153  
    1414    # Check for existence of a global logging object, otherwise make one
    1515    if 'logger' not in __shared_state.keys():
    16         logging.config.fileConfig(
    17                 os.path.join(os.path.dirname(__file__), 'logging.conf'))
     16        #TODO: make this dynamic
     17        logging.config.fileConfig('/etc/cmt/logging.conf')
    1818        __shared_state['logger'] = logging.getLogger('cli')
    1919
  • trunk/sara_cmt/sara_cmt/settings.py

    r14144 r14153  
    66#
    77#   http://docs.djangoproject.com/en/dev/ref/settings/
    8 
    9 SARACMT_BASE = os.path.normpath(os.path.dirname(__file__))
    10 PROJECT_BASE = os.path.normpath(os.path.join(SARACMT_BASE, os.path.pardir))
    118
    129# Only set CLIENT_ONLY to False on the central CMT-server
  • trunk/sara_cmt/setup.py

    r14152 r14153  
    4646#
    4747#    py_modules = ['mod1', 'pkg.mod2'],
    48     py_modules = ['bin.cmt'],
     48    #py_modules = ['bin.cmt'],
    4949
    5050# http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
     
    9090    # NOTE: wildcards aren't accepted here
    9191    data_files = [
    92         ('/etc/cmt/', ['etc/cmt.conf']),
     92        ('/etc/cmt/', [
     93            'etc/cmt.conf',
     94            'etc/logging.conf'
     95        ]),
    9396        ('/etc/cmt/templates', [
    9497            'templates/examples/base_allnodes.cmt',
     
    99102            'templates/examples/lisa_allnodes.cmt'
    100103        ]),
    101         ('/usr/local/bin/', ['bin/cmt.py']),
     104        ('/usr/local/bin/', ['bin/cmt']),
    102105    ]
    103106)
Note: See TracChangeset for help on using the changeset viewer.