Package flumotion :: Package component :: Package producers :: Package playlist :: Module playlistparser :: Class PlaylistXMLParser
[hide private]

Class PlaylistXMLParser

source code

                 object --+    
                          |    
extern.log.log.Loggable --+    
                          |    
             PlaylistParser --+
                              |
                             PlaylistXMLParser

Instance Methods [hide private]
 
parseData(self, data)
Parse playlist XML document data
source code
 
replaceFile(self, file, piid) source code
 
parseFile(self, file, piid=None)
Parse a playlist file.
source code
 
_parseAttributes(self, node, required, optional) source code
 
_parsePlaylistEntry(self, parser, entry, piid) source code
 
_parseTimestamp(self, ts) source code

Inherited from PlaylistParser: __init__, addItemToPlaylist, blockDiscovery, setBaseDirectory, startDiscovery, unblockDiscovery

Inherited from PlaylistParser (private): _discoverPending, _sortPending

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

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  logCategory = 'playlist-xml'
Implementors can provide a category to log their messages under.

Inherited from extern.log.log.Loggable: __implemented__, __provides__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parseFile(self, file, piid=None)

source code 

Parse a playlist file. Adds the contents of the file to the existing playlist, overwriting any existing entries for the same time period.