Le Lundi 11 Septembre 2006 10:07, Jerome Alet a écrit :

> Nicolas, could you include a feature to tell Jasmine to store
> the datas it receives in a file on the disk when you are in debug
> mode, if such a feature is not present already ? FYI both PyKota
> and Tea4CUPS use "keepfiles: yes" in their configuration files to
> do such thing.

Well, I'm looking at my code, because I coded this a couple of months 
ago...

Ok, the tempfile is kept only and only if :
  * Pkpgcounter returns something else than 0
  * The MySQL query fails (syntax, server not reachable,...)
  * I made an error while coding this ;-)

Problem : I just "discovered" that if JASmine-Backend does not get the 
file to print via STDIN, it means that the file already exists (created 
by CUPS) and we only get its path as an argument. So, this file gets 
automatically deleted by CUPS... So actually the only cases where 
JASmine-Backend keeps a copy of the file is when it creates a tempfile : 
When it recieves its job on STDIN.

Anyway, I can quicly modify JASmine-Backend to take a copy of the document 
before it deleted, in case of error. And, why not, do it _even_ if there 
is no apparent error. I'll try to do it today.





-- 
Put JASmine in your Cups !

To unsubscribe :
  mailto:[EMAIL PROTECTED]
List archives :
  http://dir.gmane.org/gmane.comp.printing.jasmine.user
  http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
  http://jasmine.berlios.de/



Reply via email to