Index: waeup/branches/ulif-rewrite/src/waeup/csvfile/README.txt
===================================================================
--- waeup/branches/ulif-rewrite/src/waeup/csvfile/README.txt	(revision 4336)
+++ waeup/branches/ulif-rewrite/src/waeup/csvfile/README.txt	(revision 4337)
@@ -84,5 +84,5 @@
 
 :func:`getCSVFile`
-----------------------
+------------------
 
 .. function:: getCSVFile(filepath)
@@ -102,4 +102,36 @@
 
       :ref:`getcsvfiledecision`
+
+Helpers
+=======
+
+Some helper functions provide convenience methods for handling CSV
+data.
+
+:func:`toBool`
+--------------
+
+.. function:: toBool(string)
+
+   `string`
+      String containing some CSV data.
+
+   Turn a string into a boolean value.
+
+   If the string contains one of the values ``'true'``, ``'yes'``,
+   ``'y'``, ``'on'`` or ``'checked'`` then ``True`` is returned,
+   ``False`` otherwise.
+
+   The string can be uppercase, lowercase or mixed:
+
+     >>> from waeup.csvfile import toBool
+     >>> toBool('y')
+     True
+
+     >>> toBool('Yes')
+     True
+
+     >>> toBool('TRUE')
+     True
 
 Basic example
Index: waeup/branches/ulif-rewrite/src/waeup/csvfile/__init__.py
===================================================================
--- waeup/branches/ulif-rewrite/src/waeup/csvfile/__init__.py	(revision 4336)
+++ waeup/branches/ulif-rewrite/src/waeup/csvfile/__init__.py	(revision 4337)
@@ -1,2 +1,3 @@
 # Make this a package.
 from waeup.csvfile.csvfile import getCSVFile, CSVFile
+from waeup.csvfile.util import toBool
Index: waeup/branches/ulif-rewrite/src/waeup/csvfile/util.py
===================================================================
--- waeup/branches/ulif-rewrite/src/waeup/csvfile/util.py	(revision 4337)
+++ waeup/branches/ulif-rewrite/src/waeup/csvfile/util.py	(revision 4337)
@@ -0,0 +1,10 @@
+"""Helpers for CSV import/export.
+"""
+
+## type casts
+
+def toBool(string):
+    string = string.lower()
+    if string in ['true', 'yes', 'y', 'on', 'checked']:
+        return True
+    return False
