Package advene :: Package model :: Package parsers :: Module advene_zip :: Class Parser
[hide private]
[frames] | no frames]

Class Parser

source code

object --+
         |
        Parser
Known Subclasses:

Nested Classes [hide private]
  _XML_PARSER
Instance Methods [hide private]
 
parse(self)
Do the actual parsing.
source code
 
__init__(self, file_, package)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

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

Class Methods [hide private]
 
claims_for_parse(cls, file_)
Is this parser likely to parse that file-like object?
source code
 
make_parser(cls, file_, package)
Return a parser that will parse `url` into `package`.
source code
 
parse_into(cls, file_, package)
A shortcut for ``make_parser(url, package).parse()``.
source code
Class Variables [hide private]
  NAME = 'Generic Advene Zipped Package'
  EXTENSION = '.bzp'
  MIMETYPE = 'application/x-advene-bzp'
  SERIALIZER
Unstable and experimental serializer implementation.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

claims_for_parse(cls, file_)
Class Method

source code 

Is this parser likely to parse that file-like object?

`file_` is a readable file-like object. It is the responsability of the caller to close it.

make_parser(cls, file_, package)
Class Method

source code 

Return a parser that will parse `url` into `package`.

`file_` is a writable file-like object. It is the responsability of the caller to close it.

The returned object must implement the interface for which :class:`_Parser` is the reference implementation.

parse_into(cls, file_, package)
Class Method

source code 

A shortcut for ``make_parser(url, package).parse()``.

See also `make_parser`.

__init__(self, file_, package)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

SERIALIZER

Unstable and experimental serializer implementation.

See `advene.model.serializers.advene_xml` for the reference implementation.

Value:
advene.model.serializers.advene_zip