Changeset 4284


Ignore:
Timestamp:
13 Jun 2009, 23:14:24 (15 years ago)
Author:
uli
Message:

Extend csvfile docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/csvfile/README.txt

    r4283 r4284  
    77   :synopsis: generic support for handling CSV files.
    88
    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
     19Module Contents
     20================
    1121
    1222.. class:: CSVFile(filepath)
     
    1626   strings).
    1727
     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
    1832   .. method:: grok.context(basestring)
    1933      :noindex:
     
    6175      values for correct data types or so.
    6276
    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`
    6497
    6598Basic example
    6699=============
    67100
    68 To initialize the whole framework we have to grok the `waeup` package
    69 first:
     101To initialize the whole framework we have to grok the :mod:`waeup`
     102package first:
    70103
    71104    >>> import grok
     
    180213    ['col1', 'col2']
    181214
     215.. _getcsvfilewrapper:
     216
    182217Getting a wrapper
    183218=================
     
    221256    True
    222257
     258.. _getcsvfiledecision:
    223259
    224260How `getCSVFile()` decides which wrapper to use
Note: See TracChangeset for help on using the changeset viewer.