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

Class PlaylistParser

source code

                 object --+
                          |
extern.log.log.Loggable --+
                          |
                         PlaylistParser
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, playlist)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setBaseDirectory(self, baseDir) source code
 
blockDiscovery(self)
Prevent playlist parser from running discoverer on any pending playlist entries.
source code
 
unblockDiscovery(self)
Resume discovering of any pending playlist entries.
source code
 
startDiscovery(self, doSort=True)
Initiate discovery of any pending playlist entries.
source code
 
_sortPending(self) source code
 
_discoverPending(self) source code
 
addItemToPlaylist(self, filename, timestamp, duration, offset, piid) source code

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-parse'
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]

__init__(self, playlist)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

blockDiscovery(self)

source code 

Prevent playlist parser from running discoverer on any pending playlist entries. Multiple subsequent invocations will require the same corresponding number of calls to unblockDiscovery to resume discovery.

unblockDiscovery(self)

source code 

Resume discovering of any pending playlist entries. If blockDiscovery was called multiple times multiple invocations of unblockDiscovery will be required to unblock the discoverer.

startDiscovery(self, doSort=True)

source code 

Initiate discovery of any pending playlist entries.

Parameters:
  • doSort (bool) - should the pending entries be ordered chronologically before initiating discovery