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