dmanty45 / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

new: preprocessing module #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
some files need to be preporcessed beforer translation.
examples:
- unzip
- mailbag
- convert excel to csv
in a routescrript the preprocessing can be called (is not integrated in routes 
yet).
Change: current mailbag works different!

Original issue reported on code.google.com by hjebb...@gmail.com on 16 Aug 2011 at 11:11

GoogleCodeExporter commented 8 years ago
Any example of how to use this? I would like to try it.

Original comment by mjg1964 on 21 Oct 2011 at 8:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
usage:
             preprocess.preprocess(routedict,function,**args)

routedict speak for itself,
function the is the function that does that actual processing (ug unzipping)
the **args can be used to pass additional arguments to the actual processing 
function.
in preprocess.py are two function that do the achtual processing.

In router.py, function router I use this to for incoming files with 
editype=mailbag.

this also is usable for unzipping files:
         preprocess.preprocess(routedict,preprocess.botsunzip,pass_non_zip=True)

I would like to add the 'un-pdf'-ing of files here.

Original comment by hjebb...@gmail.com on 4 Nov 2011 at 11:32

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 11 May 2012 at 10:30

GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:44