Changeset 4288 for waeup/branches


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

More sphinx aware tagging.

File:
1 edited

Legend:

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

    r4284 r4288  
    2020================
    2121
     22:class:`CSVFile`
     23----------------
     24
    2225.. class:: CSVFile(filepath)
    2326
     
    7881
    7982      Get a sorted list of header fields in the wrapped CSV file.
     83
     84
     85:func:`getCSVFile`
     86----------------------
    8087
    8188.. function:: getCSVFile(filepath)
     
    219226
    220227If we want to get a wrapper best suited for our purposes, we can also
    221 use the `getCSVFile` function:
     228use the :func:`getCSVFile` function:
    222229
    223230    >>> from waeup.csvfile.csvfile import getCSVFile
     
    258265.. _getcsvfiledecision:
    259266
    260 How `getCSVFile()` decides which wrapper to use
    261 -----------------------------------------------
    262 
    263 Apparently, getCSVFile performes some magic: given a certain CSV file,
    264 it decides which one of all registered wrappers suits the file best.
     267
     268How :func:`getCSVFile` decides which wrapper to use
     269---------------------------------------------------
     270
     271Apparently, :func:`getCSVFile` performes some magic: given a certain
     272CSV file, it decides which one of all registered wrappers suits the
     273file best.
    265274
    266275This decision is based on a score, which is computed as shown below
     
    359368The special things here are:
    360369
    361 * Derive from `CSVFile`
    362 
    363   `getCSVFile()` looks only for classes that are derived from
    364   `CSVFile`. So if you want your wrapper to be found by this function,
    365   derive from `CSVFile`.
    366 
    367   As `CSVFile` is an adapter, also our custom wrapper will become one
    368   (adapting strings):
     370* Derive from :class:`CSVFile`
     371
     372  :func:`getCSVFile` looks only for classes that are derived from
     373  :class:`CSVFile`. So if you want your wrapper to be found by this function,
     374  derive from :class:`CSVFile`.
     375
     376  As :class:`CSVFile` is an adapter, also our custom wrapper will
     377  become one (adapting strings):
    369378
    370379     >>> ICustomCSVFile(path)
     
    401410--------------------------------------------
    402411
    403 The type of a CSVFile is determined by the interfaces it provides.
     412The type of a :class:`CSVFile` is determined by the interfaces it
     413provides.
    404414
    405415If we want to get a wrapper that also guarantees to support certain
     
    543553
    544554We can also create an importer without knowing the type of CSV file
    545 before, using the `getCSVFile` function:
     555before, using the :func:`getCSVFile` function:
    546556
    547557    >>> from waeup.csvfile import getCSVFile
Note: See TracChangeset for help on using the changeset viewer.