Home | Trees | Indices | Help |
|
---|
|
object --+ | LightMediaScanner
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
int |
|
||
int |
|
||
bool |
|
||
Parser |
|
||
|
|||
Parser |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
commit_interval | |||
db_path | |||
parsers | |||
slave_timeout | |||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
repr(x)
|
str(x)
|
Add charset to list of supported input charsets/encoding. If some string in analysed/parsed files are not UTF-8, then it will try agains a list of charsets registered with this function. |
Check (and update) files under directory. This operates on all files in all sub directories of top_path using the added parsers. If files are up to date, nothing is done, otherwise they can be marked as deleted or updated if they still exists, but with different size or modification time. |
Check (and update) files under directory *without fork()-ing into child process*. This operates on all files in all sub directories of top_path using the added parsers. If files are up to date, nothing is done, otherwise they can be marked as deleted or updated if they still exists, but with different size or modification time. |
Process directory recursively. This operates on all files in all sub directories of top_path using the added parsers. |
Process directory recursively *without fork()-ing into child process*. This operates on all files in all sub directories of top_path using the added parsers. |
Set the number of transactions between commits. Sets how many transactions/files to handle in one commit, the more the faster, but if one parser takes too long and it's killed due slave_timeout being exceeded, then at most this number of transactions will be lost. Note that transaction here is not a single SQL statement, but it is considered to be the processing of a file, which can be more than just one. |
Set new progress callback. If you want to unset a callback, just use None. Function signature is: C{function(lms, path, status, *args, **kargs)} with status being one of LMS_PROGRESS_STATUS_*. @parm: B{cb} a callable object or None to unset previously set callback. |
Set maximum time a parser may use. This will be the timeout before killing the slave process running some parser. If this happens, another slave process will be started to continue from next file. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Oct 5 12:29:12 2008 | http://epydoc.sourceforge.net |