[737] | 1 | # $Id$ |
---|
| 2 | |
---|
[952] | 3 | PyKota - Print Quota for CUPS and LPRng |
---|
[737] | 4 | |
---|
[2028] | 5 | (c) 2003, 2004, 2005 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. |
---|
[737] | 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. |
---|
[737] | 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 |
---|
[2303] | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
[873] | 19 | |
---|
[737] | 20 | ============================================================ |
---|
| 21 | |
---|
[1322] | 22 | TODO, in no particular order : |
---|
[2256] | 23 | |
---|
[2299] | 24 | - Allow 'external' syntax for denyduplicates : |
---|
| 25 | |
---|
| 26 | in pykota.conf, if denyduplicates is set to : |
---|
| 27 | |
---|
| 28 | - yes ==> then duplicates are denied silently (with a log) |
---|
| 29 | - no (or unset) ==> then duplicates are allowed (without a log) |
---|
| 30 | - external(some_command_here) then the command is launched |
---|
| 31 | and its output is parsed, it may contain only ALLOW or DENY. |
---|
| 32 | And it should handle the dialog with the user, if any. |
---|
[2304] | 33 | |
---|
| 34 | - Add a new external hook to allow the overwriting of the job's ticket |
---|
| 35 | (mainly username and billing code) at startup time : |
---|
[2291] | 36 | |
---|
[2304] | 37 | 1 - hook is launched and can do whatever it wants, like asking |
---|
| 38 | the user for username+password or billing code |
---|
| 39 | |
---|
| 40 | 2 - hook prints any (or all) of : |
---|
| 41 | |
---|
| 42 | USER:some_username |
---|
| 43 | BILLING:some_billingcode |
---|
| 44 | DENY |
---|
| 45 | |
---|
| 46 | if hook doesn't print anything, job processed as usual. |
---|
| 47 | if DENY, job is rejected. |
---|
| 48 | |
---|
| 49 | 3 - if billing code or username is invalid, and if PyKota |
---|
| 50 | is configured to loop in this case, hook is launched |
---|
| 51 | again, otherwise job is rejected. |
---|
| 52 | |
---|
| 53 | 4 - if billing code and/or username is valid, the job's |
---|
| 54 | billing code and/or username are overwritten with |
---|
| 55 | these values, and PyKota processes the job as usual. |
---|
| 56 | |
---|
| 57 | - Add a table listing all the allowed billing codes. Unknown |
---|
| 58 | billing codes should produce an action which is configurable |
---|
| 59 | (reject the job being the default). The billing codes table |
---|
| 60 | will contains total pages and cost, and life time pages |
---|
| 61 | and cost => speedup for LDAP, and allows people to cleanup |
---|
| 62 | the printing history in any case. A tool to manage the |
---|
| 63 | table of billing codes must be written, but this will |
---|
| 64 | be easy. |
---|
| 65 | |
---|
[2150] | 66 | - Pass-through mode for printers : history correctly filled (including |
---|
| 67 | job size) but no impact on user's page counter or account |
---|
| 68 | balance : this is meant to be a temporary situation for |
---|
| 69 | a printer to be in pass-through mode, for example during |
---|
| 70 | an exam where the faculty pays for the printouts and we |
---|
| 71 | don't want our users to complain about their credits being |
---|
| 72 | "eaten" for mandatory printouts. |
---|
| 73 | |
---|
[2208] | 74 | - Allow several levels of administrative priviledges by allowing |
---|
| 75 | files like ~pykota/pykotadmin.someusername.conf (readonly by |
---|
| 76 | user 'someusername'), and have the database server deal |
---|
| 77 | with the permissions : no need for additionnal code or data |
---|
| 78 | in PyKota's database ! |
---|
| 79 | |
---|
[2207] | 80 | - Add a "printing denied" indicator on user print quota entries, |
---|
| 81 | to temporarily forbid an user to print on a particular printer. |
---|
| 82 | |
---|
[2123] | 83 | - Maybe per user "denyduplicates" : my 5 years old daughter |
---|
| 84 | just prints again when the printer is off... |
---|
| 85 | |
---|
[2108] | 86 | - Now that the job size is ALWAYS precomputed, add a |
---|
| 87 | MaxJobSize attribute to users and groups (printers as |
---|
| 88 | well, maybe ?) to limit each job's size if needed. |
---|
| 89 | |
---|
[1973] | 90 | - Add precomputed job size (and price) to the history for |
---|
| 91 | controlling purpose. |
---|
| 92 | |
---|
[1882] | 93 | - Try to talk to education based distribution coordinators |
---|
| 94 | (SambaEdu, SkoleLinux, K12LTSP, ...) to see how to |
---|
| 95 | better integrate PyKota with these. |
---|
| 96 | |
---|
[1876] | 97 | - Allow soft and hard limits to be increased/decreased. |
---|
| 98 | |
---|
[2212] | 99 | - Add most configuration directives to the database itself, |
---|
| 100 | while still allowing to overwrite them with the configuration |
---|
| 101 | files at run time. |
---|
[1844] | 102 | |
---|
[1634] | 103 | - Ink accounting ala PrintBill. |
---|
| 104 | |
---|
[1679] | 105 | - Price and statistics per page format. |
---|
| 106 | |
---|
[1623] | 107 | - Add a description field to users/groups. |
---|
| 108 | |
---|
[1598] | 109 | - Allow the admin to choose an action to take when the database |
---|
[1892] | 110 | is unavailable (server is down or something like that), so |
---|
[1598] | 111 | introduce two directives : |
---|
| 112 | |
---|
| 113 | nodb: accept|reject|hold |
---|
| 114 | lognodb: /path/to/file/for/later/batch/update/of/database |
---|
| 115 | |
---|
[1585] | 116 | - CUPS accepts the "STATE: ..." message as backchannel |
---|
| 117 | data : use this to tell CUPS what action has been taken |
---|
[2212] | 118 | for current job. I did some testing but wasn't able to |
---|
| 119 | make it work... |
---|
[1585] | 120 | |
---|
[1501] | 121 | - Think about some possible client <=> PyKota dialog |
---|
| 122 | possibilities, like embedding a small web server in |
---|
[1507] | 123 | PyKota for example, or something like that. |
---|
[1501] | 124 | |
---|
| 125 | - Log something when --add is used with existing entries. |
---|
| 126 | Maybe add a new command line option to force/not force |
---|
| 127 | modification of existing entries. |
---|
| 128 | |
---|
[1440] | 129 | - Finish implementation of quota-then-balance and |
---|
| 130 | balance-then-quota. |
---|
| 131 | |
---|
[1640] | 132 | - Introduce the pkusers command. |
---|
| 133 | pkusers --nogroup |
---|
[1378] | 134 | pkusers --ingroups gr1,gr2,... --outgroups gr3,gr4,... |
---|
[1370] | 135 | |
---|
[1319] | 136 | - Allow the --ingroups command line option to repykota, to |
---|
| 137 | report only users members of the specified groups. |
---|
| 138 | |
---|
[1157] | 139 | - Documentation... |
---|
| 140 | |
---|
[2054] | 141 | - Learn more bits of PHP to help with phpPyKotaAdmin, which |
---|
| 142 | is a GREAT tool ! |
---|
[1045] | 143 | |
---|
[1385] | 144 | - Multidatabase support, e.g. store users in LDAP, quota |
---|
| 145 | related datas in PostgreSQL, history in text file, |
---|
| 146 | and so on... For 2.0, probably not before. |
---|
[737] | 147 | |
---|
| 148 | |
---|
| 149 | ============================================================ |
---|
| 150 | |
---|
| 151 | Please e-mail bugs to: alet@librelogiciel.com (Jerome Alet) |
---|