Package translate :: Package storage :: Module rc :: Class rcfile

[hide private]
[frames] | no frames]

# Class rcfile

source code

               object --+
                        |
    base.TranslationStore --+
                            |
                           rcfile

this class represents a .rc file, made up of rcunits

Nested Classes | [hide private]

| UnitClass a unit of an rc file

Instance Methods | [hide private]

__init__(self, inputfile=None) construct an rcfile, optionally reading in from inputfile | source code

parse(self, rcsrc) read the source of a .rc file in and include them as units | source code

__str__(self) convert the units back to lines | 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]

Inherited from `base.TranslationStore`: `Extensions`, `Mimetypes`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

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

source code

construct an rcfile, optionally reading in from inputfile

Overrides: object.__init__

### parse(self, rcsrc)

source code

read the source of a .rc file in and include them as units

Overrides: base.TranslationStore.parse

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

source code

convert the units back to lines

Overrides: object.__str__