Changeset 1875
- Timestamp:
- 10/25/04 16:12:25 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r1826 r1875 216 216 # 'Domain2/jerome' and 'jerome' are different. 217 217 # winbind_separator: / 218 219 # Do we want to hide jobs' title, filename and options for privacy 220 # reasons ? 221 # This may be required in some countries (Italy comes to mind). 222 # Allowed values are YES and NO. 223 # If unset, the default value is NO, meaning that jobs' title, filename 224 # and options will be saved into the history. 225 # This option can't be set on a per printer basis, only into the 226 # [global] section. 227 privacy : no 218 228 219 229 # What is the accounting backend to use -
pykota/trunk/NEWS
r1868 r1875 24 24 - 1.20beta : 25 25 26 - For urgent legal reasons, a "privacy" directive has been added 27 to pykota.conf, to hide jobs' title, filename and options 28 in the history. 29 26 30 - Minor changes in the debian directory. 27 31 -
pykota/trunk/pykota/config.py
r1785 r1875 22 22 # 23 23 # $Log$ 24 # Revision 1.54 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 # 24 28 # Revision 1.53 2004/10/06 10:05:47 jalet 25 29 # Minor changes to allow any PyKota administrator to launch enhanced versions … … 524 528 return _("You will soon be forbidden to print anymore because\nyour Print Quota is almost reached on printer %s.") % printername 525 529 530 def getPrivacy(self) : 531 """Returns 1 if privacy is activated, else 0.""" 532 return self.isTrue(self.getGlobalOption("privacy", ignore=1)) 533 526 534 def getDebug(self) : 527 535 """Returns 1 if debugging is activated, else 0.""" -
pykota/trunk/pykota/storage.py
r1791 r1875 22 22 # 23 23 # $Log$ 24 # Revision 1.65 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 # 24 28 # Revision 1.64 2004/10/08 20:19:18 jalet 25 29 # Added ugly workaround for strange locale problem … … 550 554 self.usecache = pykotatool.config.getCaching() 551 555 self.disablehistory = pykotatool.config.getDisableHistory() 556 self.privacy = pykotatool.config.getPrivacy() 557 if self.privacy : 558 pykotatool.logdebug("Jobs' title, filename and options will be hidden because of privacy concerns.") 552 559 if self.usecache : 553 560 self.tool.logdebug("Caching enabled.") -
pykota/trunk/pykota/storages/ldapstorage.py
r1874 r1875 22 22 # 23 23 # $Log$ 24 # Revision 1.86 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 # 24 28 # Revision 1.85 2004/10/24 12:55:09 jalet 25 29 # Missing spaces … … 1087 1091 uuid = printer.LastJob.ident[3:].split(",")[0] 1088 1092 dn = printer.LastJob.ident 1093 if self.privacy : 1094 # For legal reasons, we want to hide the title, filename and options 1095 title = filename = options = "Hidden because of privacy concerns" 1089 1096 fields = { 1090 1097 "objectClass" : ["pykotaObject", "pykotaJob"], -
pykota/trunk/pykota/storages/sql.py
r1806 r1875 22 22 # 23 23 # $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 # 24 28 # Revision 1.58 2004/10/12 08:58:53 jalet 25 29 # Now warnpykota only warns users who have already printed, to not confuse … … 483 487 def writeJobNew(self, printer, user, jobid, pagecounter, action, jobsize=None, jobprice=None, filename=None, title=None, copies=None, options=None, clienthost=None, jobsizebytes=None) : 484 488 """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" 485 492 filename = self.userCharsetToDatabase(filename) 486 493 title = self.userCharsetToDatabase(title)