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