source: main/waeup.sirp/trunk/src/waeup/sirp/csvfile/util.py @ 4925

Last change on this file since 4925 was 4789, checked in by uli, 15 years ago

Merge changes from ulif-layout back into trunk (finally).

File size: 260 bytes
Line 
1"""Helpers for CSV import/export.
2"""
3
4## type casts
5
6def toBool(string):
7    if not isinstance(string, basestring):
8        return string
9    string = string.lower()
10    if string in ['true', 'yes', 'y', 'on', 'checked']:
11        return True
12    return False
Note: See TracBrowser for help on using the repository browser.