root / pykota / trunk / NEWS @ 1269

Revision 1269, 24.8 kB (checked in by jalet, 20 years ago)

Fixed potential accuracy problem if a user printed on several printers at
the very same time.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# $Id$
2
3PyKota - Print Quota for CUPS
4
5(c) 2003-2004 Jerome Alet <alet@librelogiciel.com>
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19
20============================================================
21
22PyKota NEWS :
23
24    - 1.16alpha23 :
25   
26        - Fixed concurrent access potential accounting accuracy problem.
27       
28    - 1.16alpha22 :
29   
30        - edpykota now allows adding printers to printer groups
31       
32    - 1.16alpha21 :
33   
34        - Allows the dot in user and printer names.
35       
36        - Printer groups are now cached too.
37       
38    - 1.16alpha20 :
39   
40        - Fixed several small bugs with the help of PyChecker.
41       
42    - 1.16alpha19 :
43     
44        - Fixed a bug in PostgreSQL backend's code.
45       
46    - 1.16alpha18 :
47   
48        - Initial code for printer groups support. Printer groups have
49          to be added with external tools like psql or gq for example.
50          Printer groups seems to work fine with users. Untested with user
51          groups for now.
52
53        - Several minor visual problems fixed in reports.
54       
55        - Fixed a bug in LDAP date handling.
56       
57        - Fix for LDAP problem with some combination of OpenLDAP + Python-LDAP
58          + some particular settings.
59         
60        - mailandpopup.sh shell script added. See sample configuration file
61          for details.
62       
63        - Several environment variables are now exported when executing
64          external commands (accounters, requesters, mailers) :
65           
66            PYKOTAUSERNAME => user who is printing
67            PYKOTAPRINTERNAME => printer on which the job is being sent
68            PYKOTATITLE => Job's title
69            PYKOTAFILENAME => Job's filename
70            PYKOTACOPIES => number of copies asked
71            PYKOTAOPTIONS => print command options (-o with CUPS)
72         
73    - 1.16alpha17 :
74   
75        - Added portugues translation.
76       
77        - Major code refactoring in accounters.
78       
79    - 1.16alpha16 :
80   
81        - Code refactoring, and addition of a real HTML reporter, to
82          have nice looking and useful web based reports (in the future).
83       
84        - Added utolower configuration option to convert all usernames
85          to lowercase during printing.
86         
87    - 1.15alpha15 :
88   
89        - Now includes the papwaitprinter.sh shell script to wait for
90          AppleTalk enabled printers.
91         
92    - 1.16alpha14 :
93   
94        - Now printing on a printer not defined in the Quota Storage,
95          results in the job being cancelled or stopped, depending
96          on the printing system.
97         
98    - 1.16alpha13 :
99   
100        - Small bugfix wrt Python v2.1
101       
102        - If username is an empty string, user root is assumed.
103       
104        - 'postgresql' is not recognized anymore as a storage backend,
105          you have to use 'pgstorage' instead. 'postgresql' used to
106          be supported for compatibility with very old PyKota versions,
107          this is not the case anymore.
108         
109    - 1.16alpha12 :
110   
111        - Job price added to job history, to keep accounting correct
112          if a printer price per page or per job is modified and the
113          history is not reset : the history would have given a false
114          amount of money charged before the printer's prices were
115          modified, this addition solves the problem.
116         
117    - 1.16alpha11 :
118   
119        - Some preliminary modifications to the database structure for
120          PostgreSQL and OpenLDAP. A script to upgrade a PostgreSQL
121          database is now provided. LDAP attributes now support
122          eq, pres and sub indexes.
123         
124        - Job history now contains additional informations : 
125          number of copies, filename, title and print options.
126         
127    - 1.16alpha10 :
128       
129        - Some modifications done to external policy handling.
130          See sample configuration file for details.
131   
132        - Spanish translation added.
133       
134    - 1.16alpha9 :
135   
136        - mailto can be set to external(...) to warn users above
137          quota with any command of your choice (e.g. linpopup).
138          Several parameters are available, see sample configuration
139          file for details.
140         
141    - 1.16alpha8 :
142   
143        - Now cupspykota transmits SIGTERMS to the original 
144          backend when the user deletes a job being processed.
145         
146        - The documentation is now licensed under the terms of the
147          GNU GPL too.
148         
149    - 1.16alpha7 :
150   
151        - The CUPS backend is now fully functionnal (it seems).
152       
153        - From now on, the use of the pykota filter with CUPS
154          is deprecated. The pykota filter still has to be
155          used with LPRng though.
156       
157    - 1.16alpha6 :
158   
159        - Bug fixed : when edpykota was used to add a printer
160          with no user or group name, a bad user/group name "*" was
161          added to the database.
162         
163    - 1.16alpha5 :
164   
165        - New CUPS backend supports device enumeration !
166          This means that NO manual CUPS configuration has to
167          be done. All can now be done from CUPS web interface.
168       
169    - 1.16alpha4 :
170   
171        - New CUPS backend added.
172       
173    - 1.16alpha3 :
174       
175        - Minimal FAQ document added.
176       
177    - 1.16alpha2 :
178   
179        - CGI script now partially supports browser's language preference
180       
181    - 1.16alpha1 :
182   
183        - Ensures that the LDAP connection is really closed at end.
184       
185        - More complete error messages in case of LDAP operation failure.
186       
187    - 1.15 :
188     
189        - Documentation improved.
190       
191    - 1.15beta :
192   
193        - Command line tools now accept multiple printer
194          names or wildcards, separated with commas.
195         
196    - 1.15alpha9 :
197   
198        - External policy can be used to auto-add unknown users
199          and any other interesting things you may want to do.
200          WARNING : You can't auto-add printers for now.
201          They have to be created manually before.
202          Look at sample configuration file for examples.
203         
204    - 1.15alpha8 :
205   
206        - Job history can be disabled if needed.
207          This feature may be useful for people who use the LDAP
208          backend and don't want their LDAP tree to grow out of
209          control.
210       
211    - 1.15alpha7 :
212   
213        - More work done on caching wrt groups.
214       
215    - 1.15alpha6 :
216   
217        - Performance bottleneck with LDAP solved.
218       
219    - 1.15alpha5 :
220   
221        - Caching mechanism for all database queries.
222
223    - 1.15alpha4 :
224   
225        - Problem with Python 2.3 fixed. Needs some definitive
226          modification.
227         
228    - 1.15alpha3 :
229   
230        - CGI script now tries to restrict view when the
231          REMOTE_USER environment variable is set. This allows
232          people to protect its use with .htaccess files.
233          When unprotected, or if REMOTE_USER is 'root', then
234          unrestricted access is granted.
235          NB : REMOTE_USER is automatically set by the web server
236          (e.g. Apache) when a page with restricted access is viewed.
237         
238    - 1.15alpha2 :
239   
240        - Better detection of LPRng.
241       
242        - Outputs a warning if printing system is unknown.
243       
244    - 1.15alpha1 :
245   
246        - Bug fix in SQL code.
247       
248    - 1.14 :
249   
250        - The PostgreSQL database connection is now always closed before
251          exit. The LDAP database connection too, but it didn't suffer
252          from the problem anyway, AFAICT.
253       
254    - 1.14beta2 :
255   
256        - An LDAP-specific configuration field was introduced, usermail.
257          Use it to specify which LDAP attribute contains a valid email
258          address for the user. See sample configuration file for
259          details.
260       
261    - 1.14beta :
262   
263        - Two new LDAP-specific configuration fields were introduced,
264          newuser and newgroup. Use them to specify if you want to add
265          quota information to existing entries or elsewhere.
266          See sample configuration file for details.
267         
268    - 1.14alpha9 :
269   
270        - Documentation improved.
271       
272        - pykotme now also prints the user's account balance value
273          if the user is registered in the Quota Storage and his
274          limiting factor is "balance".
275         
276    - 1.14alpha8 :
277   
278        - bin/waitprinter.sh is now included to wait for
279          SNMP enabled printers to be idle again before
280          asking for their internal page counter.
281          See sample configuration file for details.
282         
283    - 1.14alpha7 :
284   
285        - edpykota now doesn't check if the user/group is above
286          quota. The check is only done at print time. This
287          prevents the sending of email messages when creating
288          user quotas if quota is already reached at creation
289          time.
290         
291    - 1.14alpha6 :
292   
293        - Configuration file split and moved to /etc/pykota/pykota.conf
294          and /etc/pykota/pykotadmin.conf to prevent simple users to
295          have Read/Write access to the Quota Database.
296          Don't forget to :
297         
298                $ chmod 640 /etc/pykota/pykotadmin.conf
299               
300        - storageuser and storageuserpw configuration fields reintroduced
301          for the same reason.
302         
303        - Code cleaning for future implementation of email addresses
304          support in the PostgreSQL and LDAP backends.
305         
306    - 1.14alpha5 :
307       
308        - Big bug fixed when changing the prices for a printer
309       
310    - 1.14alpha4 :
311   
312        - When adding an user, the user itself and its account balance
313          are now added in the same LDAP entry. Before they were added
314          as two different LDAP entries.
315         
316    - 1.14alpha3 :
317   
318        - Email field added to PostgreSQL database. An upgrade script
319          is included in initscripts/postgresql.
320       
321    - 1.14alpha2 :
322   
323        - Typo fixed when using the --prototype option to edpykota
324       
325    - 1.14alpha1 :
326   
327        - Poor man's treshold included : users with a low account
328          balance (below 1.0 by default, configurable) are sent
329          a warning message.
330         
331        - All warning messages to users are now configurable. 
332          NB : Warning messages to the administrator are not.
333       
334    - 1.13 :
335   
336        - Some small fixes wrt group handling.
337       
338        - The whole module code was passed through PyChecker and
339          several small code inconsistencies were fixed,
340          as well as a bug in the groups code.
341         
342    - 1.13alpha1 :
343   
344        - Bug fix wrt LDAP.
345       
346    - 1.12 :
347   
348        - More complete test added in edpykota.
349       
350    - 1.12alpha2 :
351   
352        - The previous bug fix was incomplete. This is corrected.
353       
354    - 1.12alpha1 :
355   
356        - Small bug fix.
357       
358    - 1.11 :
359   
360        - Now includes the pykotme command line tool, to produce
361          printing quotes for users.
362         
363    - 1.10 :
364   
365        - Bug fixed wrt quota reports when print limiting is by
366          account balance.
367         
368    - 1.09 :
369   
370        - Translations finalized.
371       
372        - Manpages updated.
373       
374        - Installation documentation improved wrt LDAP support.
375       
376    - 1.09beta2 :
377   
378        - The CGI script for quota reports works again, and
379          is much more powerful.
380       
381    - 1.09beta :
382   
383        - edpykota finalized
384       
385    - 1.09alpha2 :
386   
387        - LDAP schema modified a bit. Please upgrade.
388       
389        - LDAP backend works !
390       
391        - repykota and warnpykota allow the root user to pass
392          users or groups names on the command line. Users
393          and groups names may contain wildcards.
394         
395        - repykota and warnpykota only reports or warns the
396          current user when launched by non-root users.
397         
398        - Minor bug fixes. 
399   
400    - 1.09alpha1 :
401   
402        - More work on LDAP storage backend. Many options
403          were added to /etc/pykota.conf to give some
404          hints to the LDAP storage backend.
405         
406        - Severe database access optimizations were done by
407          rewriting most of the Quota Storage backends drivers.
408     
409    - 1.08 :
410   
411        - Major bug fix wrt LPRng support for remote jobs.
412       
413        - Major bug fix wrt increase/decrease account balances.
414       
415    - 1.08alpha8 :
416   
417        - Code refactoring.
418       
419        - A single user/password pair is used to connect
420          to the database backend. The storageuser configuration
421          field, and its associated passwords storageuserpw, are
422          not used anymore.
423         
424        - You can now set PyKota in debug mode, see sample configuration 
425          file for details.
426          WARNING : only Quota Storage backend queries are logged in
427          debug mode, for now.
428       
429    - 1.08alpha7 :
430   
431        - Very latest LDAP schema.
432       
433        - Code enhancement wrt easy pluggability of PyKota attributes
434          and object classes into an existing LDAP directory.
435       
436    - 1.08alpha6 :
437   
438        - Minor bug corrections
439       
440        - More work on LDAP : new schema
441       
442    - 1.08alpha5 :
443   
444        - More good work on LDAP storage.
445          repykota now works reasonably well with the sample LDAP directory.
446       
447    - 1.08alpha4 :
448   
449        - LDAP schema included.
450          THIS IS JUST FOR PEOPLE TO DISCUSS ABOUT THIS.
451          LDAP SUPPORT DOESN'T WORK YET, AND THE SCHEMA
452          MAY CHANGE IN THE FUTURE. PLEASE TELL US
453          WHAT YOU THINK ABOUT THIS SCHEMA ON THE
454          MAILING LIST.
455         
456    - 1.08alpha3 :
457   
458        - External accounting methods were partly rewritten :
459         
460          - No more "broken pipe" should happen.
461         
462          - They now take care of the number of copies
463            This may be unneeded though, if the postscript
464            file already does this, because this would
465            overcharge users (number of copies counted
466            two times). NEEDS MORE TESTING.
467           
468          - The sample configuration file now contains 
469            an external accounting method example which should
470            work with all DSC compliant Postscript files.
471           
472        - Some small bugs were fixed.   
473       
474    - 1.08alpha2 :
475   
476        - Now works with net-snmp v5.0 and above.
477          It already worked, but the sample configuration
478          file didn't contain appropriate values...
479       
480    - 1.07 : Release of the Shame !
481   
482        - The external accounting methods driver was left out of
483          the CVS tree. Nobody could use it since it wasn't included !
484         
485    - 1.06 :
486   
487        - Severe bug fixed : if you had a printer in
488          power saving state which couldn't answer immediately,
489          a bug was triggered.
490          It was caused by a bad copy/paste which
491          forgot to import a Python module at run time.
492         
493    - 1.05 :
494   
495        - External accounters are finally available !
496          This means that you can plug any page accounting
497          method you like by setting the appropriate
498          'accounter' field in /etc/pykota.conf
499          See the sample conf/pykota.conf.sample to
500          learn how to do.
501         
502          NB : Both 'external' and 'stupid' accounting methods
503               account a job size just before *this* job is
504               sent to the printer.
505               The original 'querying' method accounts a job
506               size just before *the next* job is sent to
507               the printer.
508       
509    - 1.05alpha3 :
510   
511        - A 'stupid' and unreliable accounting method was
512          implemented to serve as an example on how to
513          do this sort of things. This method only counts
514          the 'showpage' statements in the input data.
515          See sample configuration file for details.
516          Pluggable accounting methods work, but I advise
517          you TO NOT USE THIS ONE WHICH IS JUST AN EXAMPLE.
518          It is not reliable enough to be used.
519          Use the 'querying' accounting method instead.
520         
521    - 1.05alpha2 :
522   
523        - Pluggable accounting methods.
524       
525        - Better error handling.
526       
527    - 1.05alpha1 :
528   
529        - SECURITY file added to help improve PyKota's security.
530       
531        - Extracting the printer's internal page counter is now
532          tried several times, waiting several seconds between
533          two tries. This lets the time to warm up for some printers
534          which don't answer when they are sleeping (my Apple
535          LaserWriter 16/600 PS is in this case, maybe others too)
536         
537        - Small display bug fixed in repykota
538         
539    - 1.04 :
540   
541        - Default print policy for users/groups unknown from
542          the print quota system is now DENY instead of ALLOW,
543          since ALLOW can generate inaccurate results
544          (incorrect job sizes charged to the wrong persons)
545         
546        - LPRng support works !
547       
548        - A bug was introduced some time ago wrt printers' default
549          policy for unknown users. It is now corrected.
550       
551        - repykota now displays prices per job and per page for each
552          printer, if they are defined.
553         
554        - Minor display bug fixed in repykota.
555       
556        - Problem when running repykota with an empty database was fixed.
557       
558    - 1.03 :
559   
560        - Upgrade script included for earlier versions.
561          Please look inside the initscripts subdirectory.
562          THE DATABASE SCHEMA HAS CHANGED, PLEASE UPGRADE.
563         
564        - repykota now reports account balances too.
565       
566        - PyKota now has a nice logo, see the logos
567          subdirectory.
568       
569        - Manual pages were finally updated.
570       
571        - Group quotas seem to work now !
572       
573        - The new database schema allows to keep an history of all
574          jobs as well as charge users per page and/or per job,
575          and track users' account balance.
576         
577        - edpykota now accepts much more command line options to 
578          use the new functionnalities. See edpykota --help for
579          details.
580         
581        - The installation script now allows to install the sample
582          configuration file during first installation.
583         
584        - More group quota code works, but still not finished. 
585       
586        - The CGI script displays a link to PyKota's website.
587       
588        - The job history is now kept, this will allow per-period
589          reports in the future.
590         
591        - After having modified the quota for an user with edpykota,
592          a quota check is done to eventually warn the user/admin about
593          a quota which is too low to print.
594         
595        - A workaround is provided for HP Printers : their internal
596          page counter is only saved to NVRAM in a 10 increment, so
597          if you switch them off and then on, the reported page counter
598          may be lower than the real number of pages printed.
599          See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html
600          We unconditionnally set the last job's page count to
601          abs(int((10 - abs(lastcounter(snmp) - lastcounter(storage)) / 2))
602          in this case.
603          For a more accurate accounting, never switch your HP printers
604          off.
605         
606        - A fix is provided for printers which only have a volatile 
607          page counter (reset to 0 every time you switch the printer on)
608          This should allow PyKota to work reasonably fine with HP Laserjet
609          4L/5L/6L, not perfect, but better than nothing.
610          See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html
611          For a more accurate accounting, never switch your HP printers
612          off. This is untested, please report any problem.
613         
614        - A bug was fixed when edpykota --add was used with users who already
615          had a quota on the specified printer.
616         
617        - A small display bug in repykota was introduced in preliminary
618          1.03 versions, and fixed later on.
619         
620        - Some minor bugs which happened in rare situations were fixed.
621       
622        - Support for AppleTalk printers was added, see sample configuration
623          file for details.
624         
625        - Users and group printing can now be controlled (limited) either by 
626          print quota or by account balance.
627       
628    - 1.02 :
629   
630        - The installation script now checks for software availability
631          and in case a software is missing asks the user if he
632          wants to continue with the installation or abort it.
633         
634        - The configuration file pykota.conf is now expected to be
635          found in /etc instead of in /etc/cups
636          The installation script prompts the user to see if he
637          wants to move an old configuration file to the new location
638          if needed.
639         
640        - Improved documentation.
641       
642        - You can now set the tcp/ip port on which the Quota Storage
643          Server is listening, see sample configuration file for details.
644       
645        - Better general error handling.
646       
647        - Upgrade script for pre 1.01 PostgreSQL database schema is now
648          included as well.
649       
650    - 1.01 :
651   
652        - The configuration file now accepts an option   
653          to choose the recipient(s) of the email messages :
654         
655            - DevNull means no one will receive them.
656            - User means only the user will receive them.
657            - Admin means only the admin will receive them.
658            - Both means the User and the Admin will receive them.
659           
660        - The configuration file now uses hard-coded default values
661          when an option is not set. See sample configuration file
662          for details.
663         
664        - Manual pages are included since 1.00, but I forgot to   
665          add this information to this file.
666         
667        - Redistribution terms for the official package have 
668          softened and are now fully GPL compatible :
669          unrestricted modification is now allowed even for
670          the version number.
671         
672    - 1.00 :
673   
674        - edpykota now accepts a --noquota option. This
675          disable quota checking while still doing page
676          accounting. This is really useful for people
677          who don't want to limit their users but want
678          to know how much pages they print.
679         
680        - Some untested scripts were added to retrieve
681          the life time page counter of non-SNMP printers.
682         
683        - Every directory now has a specific README file. 
684       
685    - 0.99 :
686   
687        - Under some circumstances while the user wasn't allowed
688          to print, he didn't receive any email message. It is
689          now fixed.
690         
691        - When an user wasn't allowed to print, the quota for
692          the previous user wasn't updated. This is now fixed.
693         
694    - 0.98 :
695   
696        - Correctly handle the case where the printer is switched off.
697       
698        - Small bug wrt syslog fixed.
699       
700    - 0.97 :
701   
702        - edpykota accepts wildcards on its command line for users/groups too
703          if the --add option is not set, e.g. :
704         
705              $ edpykota --printer lp --softlimit 50 --hardlimit 100 "jer*"
706             
707        - If no user name is passed at all, then a default wildcard of "*"
708          which means apply the command on ALL users for this printer is used.
709         
710        - Small bug fixes.
711       
712    - 0.96 :
713
714        - Options requester, policy, admin, adminmail and gracedelay can now
715          be set either globally or per printer. The printer option has
716          priority if both are defined.
717
718        - More powerful configuration parser.
719       
720        - If all options are defined globally, there's no need to
721          define a section for each printer in the configuration
722          file anymore. Just define a [global] section and it's ok.
723
724    - 0.95 :
725
726        - External requesters for printers finally added.
727
728        - Full internationalization (english and french are supported)
729 
730        - More complete quota usage report
731
732        - CGI script to access to the quota usage report
733
734        - Several bugs fixed.
735
736
737    - 0.9 :
738
739        - First public version
Note: See TracBrowser for help on using the browser.