root / pykota / trunk / NEWS @ 1318

Revision 1318, 26.6 kB (checked in by jalet, 20 years ago)

New user/group deletion code

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