Changeset 4284
- Timestamp:
- 13 Jun 2009, 23:14:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/csvfile/README.txt
r4283 r4284 7 7 :synopsis: generic support for handling CSV files. 8 8 9 .. Module Contents 10 .. ================ 9 10 .. note:: 11 12 This version of the :mod:`waeup.csvfile` module doesn't support 13 Unicode input. Also, there are currently some issues regarding 14 ASCII NUL characters. Accordingly, all input should be UTF-8 or 15 printable ASCII to be safe. These restrictions will be removed in 16 the future. 17 18 19 Module Contents 20 ================ 11 21 12 22 .. class:: CSVFile(filepath) … … 16 26 strings). 17 27 28 :class:`CSVFile` is designed as a base for derived, more 29 specialized types of CSV files wrappers, although it can serve as a 30 basic wrapper for simple, unspecified CSV files. 31 18 32 .. method:: grok.context(basestring) 19 33 :noindex: … … 61 75 values for correct data types or so. 62 76 63 77 .. method:: getHeaderFields() 78 79 Get a sorted list of header fields in the wrapped CSV file. 80 81 .. function:: getCSVFile(filepath) 82 83 `filepath` 84 String with a filepath to an existing CSV file. 85 86 Get a CSV file wrapper for the given `filepath`. :func:`getCSVFile` 87 knows about all registered :class:`CSVFile` wrappers registered and 88 searches them for the most appropriate one. 89 90 If none can be found ``None`` is returned. 91 92 .. seealso:: 93 94 :ref:`getcsvfilewrapper`, 95 96 :ref:`getcsvfiledecision` 64 97 65 98 Basic example 66 99 ============= 67 100 68 To initialize the whole framework we have to grok the `waeup` package69 first:101 To initialize the whole framework we have to grok the :mod:`waeup` 102 package first: 70 103 71 104 >>> import grok … … 180 213 ['col1', 'col2'] 181 214 215 .. _getcsvfilewrapper: 216 182 217 Getting a wrapper 183 218 ================= … … 221 256 True 222 257 258 .. _getcsvfiledecision: 223 259 224 260 How `getCSVFile()` decides which wrapper to use
Note: See TracChangeset for help on using the changeset viewer.