- Timestamp:
- 04/25/12 17:03:14 (12 years ago)
- Location:
- trunk/sara_cmt
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/MANIFEST.in
r14153 r14154 1 # Client only: 1 2 include AUTHORS CHANGES README 2 3 include bin/cmt 3 recursive-include etc * 4 #include sara_cmt/apache/django.wsgi4 recursive-include etc *.conf 5 #include templates/ 5 6 recursive-include templates/examples header *.cmt 6 7 #exclude sara_cmt/settings_db.py # only comment out during testing 8 9 # Server only: 10 #include sara_cmt/apache/django.wsgi -
trunk/sara_cmt/bin/cmt
r14153 r14154 79 79 80 80 # Instantiate ConfigParser 81 #TODO: make this dynamic 82 configfile = '/etc/cmt/cmt.conf' 81 #TODO: think about a (better) way to make this dynamic: 82 import site 83 configfile = '%s/etc/cmt/cmt.conf' % site.sys.prefix 83 84 config_parser = ConfigParser.ConfigParser() 84 85 config_parser.optionxform = lambda x: x -
trunk/sara_cmt/sara_cmt/logger.py
r14153 r14154 1 1 import logging 2 2 import logging.config 3 import os4 3 5 4 … … 14 13 # Check for existence of a global logging object, otherwise make one 15 14 if 'logger' not in __shared_state.keys(): 16 #TODO: make this dynamic 17 logging.config.fileConfig('/etc/cmt/logging.conf') 15 #TODO: think about a (better) way to make this dynamic: 16 import site 17 logging.config.fileConfig('%s/etc/cmt/logging.conf'%site.sys.prefix) 18 18 __shared_state['logger'] = logging.getLogger('cli') 19 19 -
trunk/sara_cmt/sara_cmt/settings.py
r14153 r14154 156 156 # Templates for the CMT command line interface. 157 157 # (thus, the templates for our configfiles, etc) 158 CMT_TEMPLATES_DIR = '/etc/sara_cmt/templates' 158 #TODO: think about a (better) way to make this dynamic: 159 #TODO: get this out of the settings.py, since it should be in the client config 160 import site 161 CMT_TEMPLATES_DIR = '%s/etc/templates' % site.sys.prefix 159 162 160 163 # Templates for the CMT web-frontend. -
trunk/sara_cmt/setup.py
r14153 r14154 62 62 #], 63 63 install_requires = [ 64 'Django>=1.2 ',64 'Django>=1.2, <1.3', 65 65 'IPy>=0.75', 66 66 'django_extensions>=0.4', … … 75 75 # 76 76 #scripts = ['sara_cmt/cmt.py'], 77 #scripts = ['cmt', 'cmt.py'],77 scripts = ['bin/cmt'], 78 78 79 79 # http://docs.python.org/distutils/setupscript.html#installing-package-data … … 90 90 # NOTE: wildcards aren't accepted here 91 91 data_files = [ 92 ('/etc/cmt/', [ 92 # config-files 93 ('etc/cmt/', [ 93 94 'etc/cmt.conf', 94 95 'etc/logging.conf' 95 96 ]), 96 ('/etc/cmt/templates', [ 97 ('etc/cmt/templates', []), 98 # examples of CMT-templates 99 ('share/doc/cmt/templates/examples', [ 97 100 'templates/examples/base_allnodes.cmt', 98 101 'templates/examples/cnames.cmt', … … 102 105 'templates/examples/lisa_allnodes.cmt' 103 106 ]), 104 ('/usr/local/bin/', ['bin/cmt']), 107 # executable 108 ('bin/', ['bin/cmt']), 105 109 ] 106 110 )
Note: See TracChangeset
for help on using the changeset viewer.