src/mercurialserver/config.py
changeset 225 ff08fd5b1a62
parent 217 32b431977bf9
child 242 03d8f07230b3
equal deleted inserted replaced
221:c4c3facf5d6b 225:ff08fd5b1a62
    25 def getReposPath(): return _getPath("repos")
    25 def getReposPath(): return _getPath("repos")
    26 def getAuthorizedKeysPath(): return _getPath("authorized_keys")
    26 def getAuthorizedKeysPath(): return _getPath("authorized_keys")
    27 
    27 
    28 def configExists():
    28 def configExists():
    29     try:
    29     try:
    30         _getAuthorizedKeysPath()
    30         getAuthorizedKeysPath()
    31         return True
    31         return True
    32     except:
    32     except Exception, e:
       
    33         print e
    33         return False
    34         return False
    34 
    35 
    35 def getKeysPaths(): return _getPaths("keys")
    36 def getKeysPaths(): return _getPaths("keys")
    36 def getAccessPaths(): return _getPaths("access")
    37 def getAccessPaths(): return _getPaths("access")
    37 
    38