[797] | 1 | # $Id$ |
---|
| 2 | |
---|
| 3 | PyKota - Print Quota for CUPS |
---|
| 4 | |
---|
| 5 | (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
[873] | 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
[797] | 10 | |
---|
[873] | 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
[797] | 15 | |
---|
[873] | 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
| 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
| 19 | |
---|
[797] | 20 | ============================================================ |
---|
| 21 | |
---|
| 22 | PyKota NEWS : |
---|
| 23 | |
---|
[962] | 24 | - 1.05alpha1 : |
---|
| 25 | |
---|
| 26 | - Extracting the printer's internal page counter is now |
---|
| 27 | tried several times, waiting several seconds between |
---|
| 28 | two tries. This lets the time to warm up for some printers |
---|
| 29 | which don't answer when they are sleeping (my Apple |
---|
| 30 | LaserWriter 16/600 PS is in this case, maybe others too) |
---|
| 31 | |
---|
[960] | 32 | - 1.04 : |
---|
[956] | 33 | |
---|
| 34 | - Default print policy for users/groups unknown from |
---|
| 35 | the print quota system is now DENY instead of ALLOW, |
---|
| 36 | since ALLOW can generate inaccurate results |
---|
| 37 | (incorrect job sizes charged to the wrong persons) |
---|
| 38 | |
---|
[954] | 39 | - LPRng support works ! |
---|
| 40 | |
---|
[953] | 41 | - A bug was introduced some time ago wrt printers' default |
---|
| 42 | policy for unknown users. It is now corrected. |
---|
| 43 | |
---|
[950] | 44 | - repykota now displays prices per job and per page for each |
---|
| 45 | printer, if they are defined. |
---|
| 46 | |
---|
[947] | 47 | - Minor display bug fixed in repykota. |
---|
| 48 | |
---|
| 49 | - Problem when running repykota with an empty database was fixed. |
---|
| 50 | |
---|
[942] | 51 | - 1.03 : |
---|
| 52 | |
---|
| 53 | - Upgrade script included for earlier versions. |
---|
| 54 | Please look inside the initscripts subdirectory. |
---|
[965] | 55 | THE DATABASE SCHEMA HAS CHANGED, PLEASE UPGRADE. |
---|
[942] | 56 | |
---|
[932] | 57 | - repykota now reports account balances too. |
---|
[929] | 58 | |
---|
[932] | 59 | - PyKota now has a nice logo, see the logos |
---|
| 60 | subdirectory. |
---|
| 61 | |
---|
[936] | 62 | - Manual pages were finally updated. |
---|
| 63 | |
---|
[927] | 64 | - Group quotas seem to work now ! |
---|
| 65 | |
---|
[910] | 66 | - The new database schema allows to keep an history of all |
---|
| 67 | jobs as well as charge users per page and/or per job, |
---|
| 68 | and track users' account balance. |
---|
| 69 | |
---|
[917] | 70 | - edpykota now accepts much more command line options to |
---|
| 71 | use the new functionnalities. See edpykota --help for |
---|
| 72 | details. |
---|
| 73 | |
---|
[885] | 74 | - The installation script now allows to install the sample |
---|
| 75 | configuration file during first installation. |
---|
[892] | 76 | |
---|
| 77 | - More group quota code works, but still not finished. |
---|
[885] | 78 | |
---|
[894] | 79 | - The CGI script displays a link to PyKota's website. |
---|
| 80 | |
---|
[899] | 81 | - The job history is now kept, this will allow per-period |
---|
| 82 | reports in the future. |
---|
[900] | 83 | |
---|
| 84 | - After having modified the quota for an user with edpykota, |
---|
| 85 | a quota check is done to eventually warn the user/admin about |
---|
| 86 | a quota which is too low to print. |
---|
| 87 | |
---|
[901] | 88 | - A workaround is provided for HP Printers : their internal |
---|
| 89 | page counter is only saved to NVRAM in a 10 increment, so |
---|
| 90 | if you switch them off and then on, the reported page counter |
---|
| 91 | may be lower than the real number of pages printed. |
---|
| 92 | See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html |
---|
[909] | 93 | We unconditionnally set the last job's page count to |
---|
| 94 | abs(int((10 - abs(lastcounter(snmp) - lastcounter(storage)) / 2)) |
---|
| 95 | in this case. |
---|
[908] | 96 | For a more accurate accounting, never switch your HP printers |
---|
| 97 | off. |
---|
[901] | 98 | |
---|
| 99 | - A fix is provided for printers which only have a volatile |
---|
| 100 | page counter (reset to 0 every time you switch the printer on) |
---|
[908] | 101 | This should allow PyKota to work reasonably fine with HP Laserjet |
---|
| 102 | 4L/5L/6L, not perfect, but better than nothing. |
---|
[901] | 103 | See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html |
---|
[908] | 104 | For a more accurate accounting, never switch your HP printers |
---|
[925] | 105 | off. This is untested, please report any problem. |
---|
[901] | 106 | |
---|
[907] | 107 | - A bug was fixed when edpykota --add was used with users who already |
---|
| 108 | had a quota on the specified printer. |
---|
| 109 | |
---|
[913] | 110 | - A small display bug in repykota was introduced in preliminary |
---|
| 111 | 1.03 versions, and fixed later on. |
---|
[915] | 112 | |
---|
| 113 | - Some minor bugs which happened in rare situations were fixed. |
---|
[913] | 114 | |
---|
[919] | 115 | - Support for AppleTalk printers was added, see sample configuration |
---|
| 116 | file for details. |
---|
[925] | 117 | |
---|
| 118 | - Users and group printing can now be controlled (limited) either by |
---|
| 119 | print quota or by account balance. |
---|
[919] | 120 | |
---|
[877] | 121 | - 1.02 : |
---|
[859] | 122 | |
---|
[871] | 123 | - The installation script now checks for software availability |
---|
| 124 | and in case a software is missing asks the user if he |
---|
| 125 | wants to continue with the installation or abort it. |
---|
| 126 | |
---|
[872] | 127 | - The configuration file pykota.conf is now expected to be |
---|
| 128 | found in /etc instead of in /etc/cups |
---|
| 129 | The installation script prompts the user to see if he |
---|
| 130 | wants to move an old configuration file to the new location |
---|
| 131 | if needed. |
---|
| 132 | |
---|
[859] | 133 | - Improved documentation. |
---|
| 134 | |
---|
| 135 | - You can now set the tcp/ip port on which the Quota Storage |
---|
| 136 | Server is listening, see sample configuration file for details. |
---|
| 137 | |
---|
[872] | 138 | - Better general error handling. |
---|
[859] | 139 | |
---|
[875] | 140 | - Upgrade script for pre 1.01 PostgreSQL database schema is now |
---|
| 141 | included as well. |
---|
| 142 | |
---|
[852] | 143 | - 1.01 : |
---|
| 144 | |
---|
| 145 | - The configuration file now accepts an option |
---|
| 146 | to choose the recipient(s) of the email messages : |
---|
| 147 | |
---|
| 148 | - DevNull means no one will receive them. |
---|
| 149 | - User means only the user will receive them. |
---|
| 150 | - Admin means only the admin will receive them. |
---|
| 151 | - Both means the User and the Admin will receive them. |
---|
| 152 | |
---|
[853] | 153 | - The configuration file now uses hard-coded default values |
---|
| 154 | when an option is not set. See sample configuration file |
---|
| 155 | for details. |
---|
| 156 | |
---|
[852] | 157 | - Manual pages are included since 1.00, but I forgot to |
---|
| 158 | add this information to this file. |
---|
| 159 | |
---|
[855] | 160 | - Redistribution terms for the official package have |
---|
| 161 | softened and are now fully GPL compatible : |
---|
| 162 | unrestricted modification is now allowed even for |
---|
| 163 | the version number. |
---|
| 164 | |
---|
[846] | 165 | - 1.00 : |
---|
| 166 | |
---|
| 167 | - edpykota now accepts a --noquota option. This |
---|
| 168 | disable quota checking while still doing page |
---|
| 169 | accounting. This is really useful for people |
---|
| 170 | who don't want to limit their users but want |
---|
| 171 | to know how much pages they print. |
---|
| 172 | |
---|
| 173 | - Some untested scripts were added to retrieve |
---|
| 174 | the life time page counter of non-SNMP printers. |
---|
| 175 | |
---|
| 176 | - Every directory now has a specific README file. |
---|
| 177 | |
---|
[833] | 178 | - 0.99 : |
---|
| 179 | |
---|
| 180 | - Under some circumstances while the user wasn't allowed |
---|
| 181 | to print, he didn't receive any email message. It is |
---|
| 182 | now fixed. |
---|
| 183 | |
---|
| 184 | - When an user wasn't allowed to print, the quota for |
---|
[835] | 185 | the previous user wasn't updated. This is now fixed. |
---|
[833] | 186 | |
---|
[827] | 187 | - 0.98 : |
---|
| 188 | |
---|
| 189 | - Correctly handle the case where the printer is switched off. |
---|
| 190 | |
---|
[828] | 191 | - Small bug wrt syslog fixed. |
---|
| 192 | |
---|
[819] | 193 | - 0.97 : |
---|
| 194 | |
---|
| 195 | - edpykota accepts wildcards on its command line for users/groups too |
---|
| 196 | if the --add option is not set, e.g. : |
---|
| 197 | |
---|
| 198 | $ edpykota --printer lp --softlimit 50 --hardlimit 100 "jer*" |
---|
| 199 | |
---|
[821] | 200 | - If no user name is passed at all, then a default wildcard of "*" |
---|
[819] | 201 | which means apply the command on ALL users for this printer is used. |
---|
| 202 | |
---|
| 203 | - Small bug fixes. |
---|
| 204 | |
---|
[803] | 205 | - 0.96 : |
---|
| 206 | |
---|
[808] | 207 | - Options requester, policy, admin, adminmail and gracedelay can now |
---|
[807] | 208 | be set either globally or per printer. The printer option has |
---|
| 209 | priority if both are defined. |
---|
[803] | 210 | |
---|
[807] | 211 | - More powerful configuration parser. |
---|
| 212 | |
---|
| 213 | - If all options are defined globally, there's no need to |
---|
| 214 | define a section for each printer in the configuration |
---|
| 215 | file anymore. Just define a [global] section and it's ok. |
---|
[803] | 216 | |
---|
[797] | 217 | - 0.95 : |
---|
| 218 | |
---|
[798] | 219 | - External requesters for printers finally added. |
---|
[797] | 220 | |
---|
| 221 | - Full internationalization (english and french are supported) |
---|
| 222 | |
---|
| 223 | - More complete quota usage report |
---|
| 224 | |
---|
| 225 | - CGI script to access to the quota usage report |
---|
| 226 | |
---|
| 227 | - Several bugs fixed. |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | - 0.9 : |
---|
| 231 | |
---|
| 232 | - First public version |
---|