Package backends :: Class Backend
[hide private]

Class Backend

source code


The base backend class. Backends shoudl derive from this

Instance Methods [hide private]
 
__init__(self, options, config, section) source code
 
can_process(self, job)
Return True if this backend is eligable to process this Job, False otherwise
source code
 
initialize(self)
This is called right after instanciating the backend.
source code
 
load_document(self, path, encode=True) source code
 
process(self, job)
Process a job.
source code
 
save_document(self, job)
Save the file in a job to a temporary location and return the full path.
source code
Method Details [hide private]

process(self, job)

source code 

Process a job. Backends must override this method.

save_document(self, job)

source code 

Save the file in a job to a temporary location and return the full path. Note that the job ID is used to form the name rather than the original filename to help avoid collisions.