diff 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
line wrap: on
line diff
--- a/pylons_app/lib/utils.py	Sun May 30 21:30:09 2010 +0200
+++ b/pylons_app/lib/utils.py	Sun May 30 22:08:21 2010 +0200
@@ -46,12 +46,15 @@
         #it means that there is no valid repo there...
         return True
                 
-def make_ui(path='hgwebdir.config', checkpaths=True):        
+def make_ui(path=None, checkpaths=True):        
     """
     A funcion that will read python rc files and make an ui from read options
     
     @param path: path to mercurial config file
     """
+    if not path:
+        log.error('repos config path is empty !')
+    
     if not os.path.isfile(path):
         log.warning('Unable to read config file %s' % path)
         return False