Mercurial > public > src > rhodecode
comparison pylons_app/lib/utils.py @ 241:48727add84c9
Made repos path config configurable from pylons app configs. update Readme
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 30 May 2010 22:08:21 +0200 |
parents | da59b7e07e3c |
children | a83a1799480c |
comparison
equal
deleted
inserted
replaced
240:7c4fa2a66195 | 241:48727add84c9 |
---|---|
44 except RepoError: | 44 except RepoError: |
45 log.info('%s repo is free for creation', repo_name) | 45 log.info('%s repo is free for creation', repo_name) |
46 #it means that there is no valid repo there... | 46 #it means that there is no valid repo there... |
47 return True | 47 return True |
48 | 48 |
49 def make_ui(path='hgwebdir.config', checkpaths=True): | 49 def make_ui(path=None, checkpaths=True): |
50 """ | 50 """ |
51 A funcion that will read python rc files and make an ui from read options | 51 A funcion that will read python rc files and make an ui from read options |
52 | 52 |
53 @param path: path to mercurial config file | 53 @param path: path to mercurial config file |
54 """ | 54 """ |
55 if not path: | |
56 log.error('repos config path is empty !') | |
57 | |
55 if not os.path.isfile(path): | 58 if not os.path.isfile(path): |
56 log.warning('Unable to read config file %s' % path) | 59 log.warning('Unable to read config file %s' % path) |
57 return False | 60 return False |
58 #propagated from mercurial documentation | 61 #propagated from mercurial documentation |
59 sections = [ | 62 sections = [ |