Package translate :: Package storage :: Module csvl10n :: Class csvfile

[hide private]
[frames] | no frames]

# Class csvfile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
                           csvfile

This class represents a .csv file with various lines. The default format contains three columns: comments, source, target

Nested Classes | [hide private]

| UnitClass Base class for translation units.

Instance Methods | [hide private]

__init__(self, inputfile=None, fieldnames=None) Constructs a blank TranslationStore. | source code

parse(self, csvsrc) parser to process the given source string | source code

__str__(self) convert to a string. | source code

getoutput(self) | source code

Inherited from `base.TranslationStore`: `addsourceunit`, `addunit`, `findunit`, `getunits`, `isempty`, `makeindex`, `save`, `savefile`, `setsourcelanguage`, `settargetlanguage`, `translate`, `unit_iter`

Inherited from `base.TranslationStore` (private): `_assignname`

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Class Methods | [hide private]

Inherited from `base.TranslationStore`: `parsefile`, `parsestring`

Class Variables | [hide private]

| Mimetypes = ``[``'``text/comma-separated-values``'``,` `'``text/csv``'``]``
| Extensions = ``[``'``csv``'``]``

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, inputfile=None, fieldnames=None)
(Constructor)

source code

Constructs a blank TranslationStore.

Overrides: object.__init__
  (inherited documentation)

### parse(self, csvsrc)

source code

parser to process the given source string

Overrides: base.TranslationStore.parse
  (inherited documentation)

### __str__(self)
(Informal representation operator)

source code

convert to a string. double check that unicode is handled somehow here

Overrides: object.__str__