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