diff util.py @ 43:12ed8b5fa08c

first system preference: configure app to stat maximized.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 08:31:46 +0200
parents 22214d79ed41
children 03358c113170
line wrap: on
line diff
--- a/util.py	Fri May 14 08:08:17 2010 +0200
+++ b/util.py	Fri May 14 08:31:46 2010 +0200
@@ -25,3 +25,6 @@
     for feed in Feed.all(session):
         feed.next_update = datetime.now() - timedelta(minutes=1)
     session.commit()
+
+def str2bool(string):
+    return string.lower() in ["yes", "true", "t", "1"]