str2bool is not only useful in backup_xva, make it avail. elsewhere.

This commit is contained in:
Jérémie Courrèges-Anglas
2014-11-20 15:59:29 +01:00
parent bea13b4424
commit cde133eadd
2 changed files with 10 additions and 9 deletions
+5
View File
@@ -280,6 +280,11 @@ def monitor_stdout(aprocess, onoutputdata,context):
return "\n".join(stdout)
def str2bool(val):
if type(val) != bool:
return val.lower() in ("yes", "true", "t", "1")
class BackupStat:
dbpath = ''
db = None