Show
Ignore:
Timestamp:
10/25/04 16:12:25 (20 years ago)
Author:
jalet
Message:

For URGENT legal reasons (Italy), a new "privacy" directive was added to pykota.conf
to hide print jobs' title, filename, and options.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/sql.py

    r1806 r1875  
    2222# 
    2323# $Log$ 
     24# Revision 1.59  2004/10/25 14:12:25  jalet 
     25# For URGENT legal reasons (Italy), a new "privacy" directive was added to pykota.conf 
     26# to hide print jobs' title, filename, and options. 
     27# 
    2428# Revision 1.58  2004/10/12 08:58:53  jalet 
    2529# Now warnpykota only warns users who have already printed, to not confuse 
     
    483487    def writeJobNew(self, printer, user, jobid, pagecounter, action, jobsize=None, jobprice=None, filename=None, title=None, copies=None, options=None, clienthost=None, jobsizebytes=None) : 
    484488        """Adds a job in a printer's history.""" 
     489        if self.privacy :     
     490            # For legal reasons, we want to hide the title, filename and options 
     491            title = filename = options = "Hidden because of privacy concerns" 
    485492        filename = self.userCharsetToDatabase(filename) 
    486493        title = self.userCharsetToDatabase(title)