Package daklib :: Module contents :: Class SourceContentsScanner
[hide private]
[frames] | no frames]

Class SourceContentsScanner

source code

SourceContentsScanner provides a method scan() to scan the contents of a DBSource object.

Instance Methods [hide private]
 
__init__(self, source_id)
The argument source_id is the id of the DBSource object that should be scanned.
source code
 
scan(self)
This method does the actual scan and fills in the associated SrcContents property.
source code
Class Methods [hide private]
 
scan_all(class_, limit=None)
The class method scan_all() scans all source using multiple processes.
source code
Method Details [hide private]

scan(self)

source code 

This method does the actual scan and fills in the associated SrcContents property. It commits any changes to the database.

scan_all(class_, limit=None)
Class Method

source code 

The class method scan_all() scans all source using multiple processes. The number of sources to be scanned can be limited with the limit argument. Returns the number of processed and remaining packages as a dict.