root / pykota / trunk / NEWS @ 1321

Revision 1321, 26.7 kB (checked in by jalet, 20 years ago)

Fixes stupid software accounting bug in CUPS backend

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