diff options
Diffstat (limited to 'UpdateManager/Common')
| -rw-r--r-- | UpdateManager/Common/__init__.py | 3 | ||||
| -rw-r--r-- | UpdateManager/Common/utils.py | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/UpdateManager/Common/__init__.py b/UpdateManager/Common/__init__.py index 312e52dd..139597f9 100644 --- a/UpdateManager/Common/__init__.py +++ b/UpdateManager/Common/__init__.py @@ -1 +1,2 @@ -from SimpleGladeApp import SimpleGladeApp + + diff --git a/UpdateManager/Common/utils.py b/UpdateManager/Common/utils.py new file mode 100644 index 00000000..92fe16b0 --- /dev/null +++ b/UpdateManager/Common/utils.py @@ -0,0 +1,8 @@ + +def str_to_bool(str): + if str == "0" or str.upper() == "FALSE": + return False + return True + +def utf8(str): + return unicode(str, 'latin1').encode('utf-8') |
