root / pykota / trunk / NEWS @ 1323

Revision 1323, 26.8 kB (checked in by jalet, 20 years ago)

1.17

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