Changeset 2147 for pykota/trunk/bin

Show
Ignore:
Timestamp:
03/06/05 17:52:43 (19 years ago)
Author:
jerome
Message:

Removed all references to $Log$

Location:
pykota/trunk/bin
Files:
14 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.9  2005/01/17 08:44:23  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.8  2004/10/21 22:21:21  jalet 
    30 # Fixes a string interpolation problem 
    31 # 
    32 # Revision 1.7  2004/10/13 08:09:19  jalet 
    33 # More complete PATH. 
    34 # pkhint doesn't use absolute path to search for helper commands anymore. 
    35 # 
    36 # Revision 1.6  2004/10/11 22:53:05  jalet 
    37 # Postponed string interpolation to help message's output method 
    38 # 
    39 # Revision 1.5  2004/10/11 22:08:06  jalet 
    40 # Incorrect doc for autopykota 
    41 # 
    42 # Revision 1.4  2004/10/11 12:49:05  jalet 
    43 # Renders help translatable 
    44 # 
    45 # Revision 1.3  2004/10/06 07:51:07  jalet 
    46 # Now autopykota uses 0.0 as the default value for initial account balance 
    47 # if the --initbalance command line option is not used. 
    48 # 
    49 # Revision 1.2  2004/09/30 11:22:30  jalet 
    50 # Extends the PATH and doesn't use absolute path anymore to launch edpykota. 
    51 # 
    52 # Revision 1.1  2004/09/30 09:52:45  jalet 
    53 # Initial release of autopykota. Reading help or manpage is greatly 
    54 # encouraged ! 
    55 # 
    5624# 
    5725# 
  • pykota/trunk/bin/cupspykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.89  2005/02/16 00:29:33  jalet 
    27 # Fixed the maxdenybanners directive. 
    28 # Introduced the denyduplicates directive. 
    29 # Fixed some database related glitches. 
    30 # 
    31 # Revision 1.88  2005/02/14 23:39:50  jalet 
    32 # Introduces the new 'trustjobsize' directive to workaround some printers 
    33 # generating unstable internal page counter values when queried through SNMP. 
    34 # 
    35 # Revision 1.87  2005/02/14 22:53:44  jalet 
    36 # Now always precomputes the job's size with the internal PDL parser, and not 
    37 # only when 'enforcement: strict' was set in pykota.conf 
    38 # 
    39 # Revision 1.86  2005/02/13 22:48:37  jalet 
    40 # Added the md5sum to the history 
    41 # 
    42 # Revision 1.85  2005/02/13 22:02:28  jalet 
    43 # Big database structure changes. Upgrade script is now included as well as 
    44 # the new LDAP schema. 
    45 # Introduction of the -o | --overcharge command line option to edpykota. 
    46 # The output of repykota is more complete, but doesn't fit in 80 columns anymore. 
    47 # Introduction of the new 'maxdenybanners' directive. 
    48 # 
    49 # Revision 1.84  2005/01/17 08:44:23  jalet 
    50 # Modified copyright years 
    51 # 
    52 # Revision 1.83  2005/01/06 23:23:35  jalet 
    53 # Regain priviledge the time to read the job control file to extract the client 
    54 # hostname 
    55 # 
    56 # Revision 1.82  2005/01/06 22:52:53  jalet 
    57 # Implemented the dropping of priviledges. Beware, beware... 
    58 # 
    59 # Revision 1.81  2004/12/07 16:54:02  jalet 
    60 # Now logs as errors differences between computed and precomputed job's sizes 
    61 # 
    62 # Revision 1.80  2004/11/15 22:12:46  jalet 
    63 # Fix for the Fix !!! 
    64 # 
    65 # Revision 1.79  2004/11/15 22:01:34  jalet 
    66 # Improved banner handling. 
    67 # Fix for raw printing and banners. 
    68 # 
    69 # Revision 1.78  2004/11/15 19:59:34  jalet 
    70 # PyKota banners now basically work ! 
    71 # 
    72 # Revision 1.77  2004/11/06 22:40:57  jalet 
    73 # Safer code 
    74 # 
    75 # Revision 1.76  2004/11/06 22:35:58  jalet 
    76 # Added a miniparser for IPP messages (RFC 2910). The job-originating-host-name 
    77 # retrieval is now fiable, unless the CUPS developpers change something... 
    78 # 
    79 # Revision 1.75  2004/11/01 15:45:25  jalet 
    80 # Added many debug messages. 
    81 # Added some code to prevent short writes. 
    82 # 
    83 # Revision 1.74  2004/10/13 20:51:27  jalet 
    84 # Made debugging levels be the same in cupspykota and lprngpykota. 
    85 # Now outputs more information in informational messages : user, printer, jobid 
    86 # 
    87 # Revision 1.73  2004/10/13 16:56:45  jalet 
    88 # Added a space to the pattern to differentiate jobs which id begins with 
    89 # the same digits, like jobs 87 and 879 for example : if printed by same 
    90 # user on same printer, but from a different host this could have broken 
    91 # the result. (In reality this couldn't happen because 879 would be the 
    92 # last line to match anyway because of job ordering, but we never know 
    93 # if the page_log file gets corrupt somewhat) 
    94 # 
    95 # Revision 1.72  2004/09/13 16:02:44  jalet 
    96 # Added fix for incorrect job's size when hardware accounting fails 
    97 # 
    98 # Revision 1.71  2004/09/06 17:05:06  jalet 
    99 # Fix for autodetection of SC_OPEN_MAX 
    100 # 
    101 # Revision 1.70  2004/07/26 09:20:27  jalet 
    102 # Unneeded module 
    103 # 
    104 # Revision 1.69  2004/07/22 22:41:47  jalet 
    105 # Hardware accounting for LPRng should be OK now. UNTESTED. 
    106 # 
    107 # Revision 1.68  2004/07/20 22:19:44  jalet 
    108 # Sanitized a bit + use of gettext 
    109 # 
    110 # Revision 1.67  2004/07/16 12:22:45  jalet 
    111 # LPRng support early version 
    112 # 
    113 # Revision 1.66  2004/07/01 19:56:25  jalet 
    114 # Better dispatching of error messages 
    115 # 
    116 # Revision 1.65  2004/06/22 09:31:17  jalet 
    117 # Always send some debug info to CUPS' back channel stream (stderr) as 
    118 # informationnal messages. 
    119 # 
    120 # Revision 1.64  2004/06/18 13:34:46  jalet 
    121 # Now all tracebacks include PyKota's version number 
    122 # 
    123 # Revision 1.63  2004/06/17 13:26:50  jalet 
    124 # Better exception handling code 
    125 # 
    126 # Revision 1.62  2004/06/16 20:56:34  jalet 
    127 # Smarter initialisation code 
    128 # 
    129 # Revision 1.61  2004/06/08 09:00:04  jalet 
    130 # Fixed problem when username was passed in uppercase from Samba and we 
    131 # tried to find correct line in CUPS page_log to extract the hostname. 
    132 # 
    133 # Revision 1.60  2004/06/03 23:14:08  jalet 
    134 # Now stores the job's size in bytes in the database. 
    135 # Preliminary work on payments storage : database schemas are OK now, 
    136 # but no code to store payments yet. 
    137 # Removed schema picture, not relevant anymore. 
    138 # 
    139 # Revision 1.59  2004/06/03 22:12:53  jalet 
    140 # Now denies empty jobs 
    141 # 
    142 # Revision 1.58  2004/06/03 21:50:33  jalet 
    143 # Improved error logging. 
    144 # crashrecipient directive added. 
    145 # Now exports the job's size in bytes too. 
    146 # 
    147 # Revision 1.57  2004/06/02 22:18:07  jalet 
    148 # I think the bug when cancelling jobs should be fixed right now 
    149 # 
    150 # Revision 1.56  2004/06/02 21:50:56  jalet 
    151 # Moved the sigterm capturing elsewhere 
    152 # 
    153 # Revision 1.55  2004/06/02 14:25:07  jalet 
    154 # Should correctly capture ALL errors now 
    155 # 
    156 # Revision 1.54  2004/05/26 16:44:48  jalet 
    157 # Now logs something when client hostname can't be extracted 
    158 # 
    159 # Revision 1.53  2004/05/26 14:49:35  jalet 
    160 # First try at saving the job-originating-hostname in the database 
    161 # 
    162 # Revision 1.52  2004/05/25 09:15:13  jalet 
    163 # accounter.py : old code deleted 
    164 # the rest : now exports PYKOTAPRECOMPUTEDJOBSIZE and PYKOTAPRECOMPUTEDJOBPRICE 
    165 # 
    166 # Revision 1.51  2004/05/25 08:31:16  jalet 
    167 # Heavy CPU usage seems to be fixed at least ! 
    168 # 
    169 # Revision 1.50  2004/05/25 05:17:50  jalet 
    170 # Now precomputes the job's size only if current printer's enforcement 
    171 # is "STRICT" 
    172 # 
    173 # Revision 1.49  2004/05/24 22:45:48  jalet 
    174 # New 'enforcement' directive added 
    175 # Polling loop improvements 
    176 # 
    177 # Revision 1.48  2004/05/24 14:36:24  jalet 
    178 # Revert to old polling loop. Will need optimisations 
    179 # 
    180 # Revision 1.47  2004/05/24 11:59:46  jalet 
    181 # More robust (?) code 
    182 # 
    183 # Revision 1.46  2004/05/21 22:02:51  jalet 
    184 # Preliminary work on pre-accounting 
    185 # 
    186 # Revision 1.45  2004/05/19 07:15:32  jalet 
    187 # Could the 'misterious' bug in my loop be finally fixed ??? 
    188 # 
    189 # Revision 1.44  2004/05/18 14:48:47  jalet 
    190 # Big code changes to completely remove the need for "requester" directives, 
    191 # jsut use "hardware(... your previous requester directive's content ...)" 
    192 # 
    193 # Revision 1.43  2004/05/17 11:46:05  jalet 
    194 # First try at cupspykota's main loop rewrite 
    195 # 
    196 # Revision 1.42  2004/05/10 11:22:28  jalet 
    197 # Typo 
    198 # 
    199 # Revision 1.41  2004/05/10 10:07:30  jalet 
    200 # Catches OSError while reading 
    201 # 
    202 # Revision 1.40  2004/05/10 09:29:48  jalet 
    203 # Should be more robust if we receive a SIGTERM during an I/O operation 
    204 # 
    205 # Revision 1.39  2004/05/07 14:44:53  jalet 
    206 # Fix for file handles unregistered twice from the polling object 
    207 # 
    208 # Revision 1.38  2004/04/09 22:24:46  jalet 
    209 # Began work on correct handling of child processes when jobs are cancelled by 
    210 # the user. Especially important when an external requester is running for a 
    211 # long time. 
    212 # 
    213 # Revision 1.37  2004/03/18 19:11:25  jalet 
    214 # Fix for raw jobs in cupspykota 
    215 # 
    216 # Revision 1.36  2004/03/18 14:03:18  jalet 
    217 # Added fsync() calls 
    218 # 
    219 # Revision 1.35  2004/03/16 12:05:01  jalet 
    220 # Small fix for new waitprinter.sh : when job was denied, would wait forever 
    221 # for printer being in printing mode. 
    222 # 
    223 # Revision 1.34  2004/03/15 10:47:56  jalet 
    224 # This time the traceback formatting should be correct ! 
    225 # 
    226 # Revision 1.33  2004/03/05 12:46:07  jalet 
    227 # Improve tracebacks 
    228 # 
    229 # Revision 1.32  2004/03/05 12:31:35  jalet 
    230 # Now should output full traceback when crashing 
    231 # 
    232 # Revision 1.31  2004/03/01 14:35:56  jalet 
    233 # PYKOTAPHASE wasn't set soon enough at the start of the job 
    234 # 
    235 # Revision 1.30  2004/03/01 14:34:15  jalet 
    236 # PYKOTAPHASE wasn't set at the right time at the end of data transmission 
    237 # to underlying layer (real backend) 
    238 # 
    239 # Revision 1.29  2004/03/01 11:23:25  jalet 
    240 # Pre and Post hooks to external commands are available in the cupspykota 
    241 # backend. Forthe pykota filter they will be implemented real soon now. 
    242 # 
    243 # Revision 1.28  2004/02/26 14:18:07  jalet 
    244 # Should fix the remaining bugs wrt printers groups and users groups. 
    245 # 
    246 # Revision 1.27  2004/02/04 23:41:27  jalet 
    247 # Should fix the incorrect "backend died abnormally" problem. 
    248 # 
    249 # Revision 1.26  2004/01/30 16:35:03  jalet 
    250 # Fixes stupid software accounting bug in CUPS backend 
    251 # 
    252 # Revision 1.25  2004/01/16 17:51:46  jalet 
    253 # Fuck Fuck Fuck !!! 
    254 # 
    255 # Revision 1.24  2004/01/14 15:52:01  jalet 
    256 # Small fix for job cancelling code. 
    257 # 
    258 # Revision 1.23  2004/01/13 10:48:28  jalet 
    259 # Small streams polling loop modification. 
    260 # 
    261 # Revision 1.22  2004/01/12 22:43:40  jalet 
    262 # New formula to compute a job's price 
    263 # 
    264 # Revision 1.21  2004/01/12 18:17:36  jalet 
    265 # Denied jobs weren't stored into the history anymore, this is now fixed. 
    266 # 
    267 # Revision 1.20  2004/01/11 23:22:42  jalet 
    268 # Major code refactoring, it's way cleaner, and now allows automated addition 
    269 # of printers on first print. 
    270 # 
    271 # Revision 1.19  2004/01/08 14:10:32  jalet 
    272 # Copyright year changed. 
    273 # 
    274 # Revision 1.18  2004/01/07 16:16:32  jalet 
    275 # Better debugging information 
    276 # 
    277 # Revision 1.17  2003/12/27 16:49:25  uid67467 
    278 # Should be ok now. 
    279 # 
    280 # Revision 1.17  2003/12/06 08:54:29  jalet 
    281 # Code simplifications. 
    282 # Added many debugging messages. 
    283 # 
    284 # Revision 1.16  2003/11/26 20:43:29  jalet 
    285 # Inadvertantly introduced a bug, which is fixed. 
    286 # 
    287 # Revision 1.15  2003/11/26 19:17:35  jalet 
    288 # Printing on a printer not present in the Quota Storage now results 
    289 # in the job being stopped or cancelled depending on the system. 
    290 # 
    291 # Revision 1.14  2003/11/25 13:25:45  jalet 
    292 # Boolean problem with old Python, replaced with 0 
    293 # 
    294 # Revision 1.13  2003/11/23 19:01:35  jalet 
    295 # Job price added to history 
    296 # 
    297 # Revision 1.12  2003/11/21 14:28:43  jalet 
    298 # More complete job history. 
    299 # 
    300 # Revision 1.11  2003/11/19 23:19:35  jalet 
    301 # Code refactoring work. 
    302 # Explicit redirection to /dev/null has to be set in external policy now, just 
    303 # like in external mailto. 
    304 # 
    305 # Revision 1.10  2003/11/18 17:54:24  jalet 
    306 # SIGTERMs are now transmitted to original backends. 
    307 # 
    308 # Revision 1.9  2003/11/18 14:11:07  jalet 
    309 # Small fix for bizarre urls 
    310 # 
    311 # Revision 1.8  2003/11/15 14:26:44  jalet 
    312 # General improvements to the documentation. 
    313 # Email address changed in sample configuration file, because 
    314 # I receive low quota messages almost every day... 
    315 # 
    316 # Revision 1.7  2003/11/14 22:05:12  jalet 
    317 # New CUPS backend fully functionnal. 
    318 # Old CUPS configuration method is now officially deprecated. 
    319 # 
    320 # Revision 1.6  2003/11/14 20:13:11  jalet 
    321 # We exit the loop too soon. 
    322 # 
    323 # Revision 1.5  2003/11/14 18:31:27  jalet 
    324 # Not perfect, but seems to work with the poll() loop. 
    325 # 
    326 # Revision 1.4  2003/11/14 17:04:15  jalet 
    327 # More (untested) work on the CUPS backend. 
    328 # 
    329 # Revision 1.3  2003/11/12 23:27:44  jalet 
    330 # More work on new backend. This commit may be unstable. 
    331 # 
    332 # Revision 1.2  2003/11/12 09:33:34  jalet 
    333 # New CUPS backend supports device enumeration 
    334 # 
    335 # Revision 1.1  2003/11/08 16:05:31  jalet 
    336 # CUPS backend added for people to experiment. 
    337 # 
    33824# 
    33925# 
  • pykota/trunk/bin/dumpykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.22  2005/01/17 08:44:23  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.21  2005/01/08 17:03:06  jalet 
    30 # "--format cups" output more resembling CUPS' page_log. 
    31 # Split into a command line tool and a module, to allow easier coding of 
    32 # a CGI interface. 
    33 # 
    34 # Revision 1.20  2005/01/08 11:25:48  jalet 
    35 # Fixed the time zone field in page_log output to make PrintAnalyzer happy 
    36 # 
    37 # Revision 1.19  2005/01/08 10:52:01  jalet 
    38 # Now dumpykota can dump the history into CUPS' page_log format, allowing the 
    39 # use of tools like PrintAnalyzer or phpPrintAnalyzer along with PyKota 
    40 # 
    41 # Revision 1.18  2005/01/07 12:40:53  jalet 
    42 # Fixed field type's name in XML dumps. 
    43 # 
    44 # Revision 1.17  2004/12/21 15:50:00  jalet 
    45 # The dumpykota command now supports extended filtering capabilities with 
    46 # the PostgreSQL backend. LDAP doesn't yet support such possibilities. 
    47 # 
    48 # Revision 1.16  2004/12/21 14:45:31  jalet 
    49 # Prepared dumpykota to accept the new --filter command line option. Some 
    50 # additionnal work needs to be done in the backends though. 
    51 # 
    52 # Revision 1.15  2004/10/12 15:37:00  jalet 
    53 # Now outputs the name of the offending user if a mere mortal tries to use 
    54 # one of these commands !!! 
    55 # 
    56 # Revision 1.14  2004/10/11 22:53:05  jalet 
    57 # Postponed string interpolation to help message's output method 
    58 # 
    59 # Revision 1.13  2004/10/11 12:49:06  jalet 
    60 # Renders help translatable 
    61 # 
    62 # Revision 1.12  2004/10/07 21:14:28  jalet 
    63 # Hopefully final fix for data encoding to and from the database 
    64 # 
    65 # Revision 1.11  2004/10/07 14:35:40  jalet 
    66 # Now edpykota refuses to launch if the user is not a PyKota administrator. 
    67 # dumpykota : now has the same error message than edpykota in this case. 
    68 # 
    69 # Revision 1.10  2004/10/06 10:05:47  jalet 
    70 # Minor changes to allow any PyKota administrator to launch enhanced versions 
    71 # of the commands, and not only the root user. 
    72 # 
    73 # Revision 1.9  2004/10/05 20:08:46  jalet 
    74 # Misleading help message. Thx to Johannes Laemmermann. 
    75 # 
    76 # Revision 1.8  2004/10/05 09:59:19  jalet 
    77 # Restore compatibility with Python 2.1 
    78 # 
    79 # Revision 1.7  2004/10/04 21:25:29  jalet 
    80 # dumpykota can now output datas in the XML format 
    81 # 
    82 # Revision 1.6  2004/09/15 18:28:41  jalet 
    83 # Updated help for dumpykota 
    84 # 
    85 # Revision 1.5  2004/09/15 07:38:05  jalet 
    86 # Fix for uninitialized variable 
    87 # 
    88 # Revision 1.4  2004/09/15 07:26:19  jalet 
    89 # Data dumps are now ordered by entry creation date if applicable. 
    90 # Now dumpykota exits with a message when there's a broken pipe like 
    91 # in dumpykota --data history | head -3 
    92 # 
    93 # Revision 1.3  2004/09/15 06:58:25  jalet 
    94 # User groups membership and printer groups membership can now be dumped too 
    95 # 
    96 # Revision 1.2  2004/09/14 22:29:12  jalet 
    97 # First version of dumpykota. Works fine but only with PostgreSQL backend 
    98 # for now. 
    99 # 
    100 # Revision 1.1  2004/07/01 19:22:37  jalet 
    101 # First draft of dumpykota 
    102 # 
    10324# 
    10425# 
  • pykota/trunk/bin/edpykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.88  2005/02/19 17:47:19  jalet 
    27 # Fixed the --prototype command line option to edpykota 
    28 # 
    29 # Revision 1.87  2005/02/13 22:02:28  jalet 
    30 # Big database structure changes. Upgrade script is now included as well as 
    31 # the new LDAP schema. 
    32 # Introduction of the -o | --overcharge command line option to edpykota. 
    33 # The output of repykota is more complete, but doesn't fit in 80 columns anymore. 
    34 # Introduction of the new 'maxdenybanners' directive. 
    35 # 
    36 # Revision 1.86  2005/01/21 14:40:01  jalet 
    37 # edpykota's --delete command line tool doesn't use "*" as its default argument 
    38 # anymore when the user doesn't pass any real argument :-) 
    39 # 
    40 # Revision 1.85  2005/01/18 19:47:49  jalet 
    41 # Big bug fix wrt the datelimit attribute 
    42 # 
    43 # Revision 1.84  2005/01/17 08:44:23  jalet 
    44 # Modified copyright years 
    45 # 
    46 # Revision 1.83  2004/12/02 21:24:50  jalet 
    47 # Integrated the patch by Wilson Roberto Afonso and Matt Hyclak to allow 
    48 # edpykota to accept the -U | --used value command line option. 
    49 # 
    50 # Revision 1.82  2004/11/22 21:53:38  jalet 
    51 # Added the reject_unknown directive to pykota.conf to reject user/group 
    52 # creation if user or group is unknown to the system 
    53 # 
    54 # Revision 1.81  2004/10/12 15:37:00  jalet 
    55 # Now outputs the name of the offending user if a mere mortal tries to use 
    56 # one of these commands !!! 
    57 # 
    58 # Revision 1.80  2004/10/11 22:53:05  jalet 
    59 # Postponed string interpolation to help message's output method 
    60 # 
    61 # Revision 1.79  2004/10/11 12:49:06  jalet 
    62 # Renders help translatable 
    63 # 
    64 # Revision 1.78  2004/10/07 14:35:40  jalet 
    65 # Now edpykota refuses to launch if the user is not a PyKota administrator. 
    66 # dumpykota : now has the same error message than edpykota in this case. 
    67 # 
    68 # Revision 1.77  2004/09/28 17:45:31  jalet 
    69 # Added the --hardreset command line option to edpykota 
    70 # 
    71 # Revision 1.76  2004/07/01 19:56:40  jalet 
    72 # Better dispatching of error messages 
    73 # 
    74 # Revision 1.75  2004/06/18 13:34:47  jalet 
    75 # Now all tracebacks include PyKota's version number 
    76 # 
    77 # Revision 1.74  2004/06/07 18:43:40  jalet 
    78 # Fixed over-verbose exits when displaying help or version number 
    79 # 
    80 # Revision 1.73  2004/06/03 21:50:34  jalet 
    81 # Improved error logging. 
    82 # crashrecipient directive added. 
    83 # Now exports the job's size in bytes too. 
    84 # 
    85 # Revision 1.72  2004/04/16 16:20:19  jalet 
    86 # Note about not implemented limitby values 
    87 # 
    88 # Revision 1.71  2004/03/24 15:15:24  jalet 
    89 # Began integration of Henrik Janhagen's work on quota-then-balance 
    90 # and balance-then-quota 
    91 # 
    92 # Revision 1.70  2004/02/27 09:23:21  jalet 
    93 # Minor code reorganisation 
    94 # 
    95 # Revision 1.69  2004/02/19 15:05:56  jalet 
    96 # domain names changed to example.com in the doc, according to RFC2606 
    97 # 
    98 # Revision 1.68  2004/01/28 10:05:22  jalet 
    99 # New user/group deletion code 
    100 # 
    101 # Revision 1.67  2004/01/15 11:19:07  jalet 
    102 # Typos in messages wrt gettext. 
    103 # 
    104 # Revision 1.66  2004/01/12 21:54:36  jalet 
    105 # User's email address can now be set at user's creation time. 
    106 # 
    107 # Revision 1.65  2004/01/08 16:24:49  jalet 
    108 # edpykota now supports adding printers to printer groups. 
    109 # 
    110 # Revision 1.64  2004/01/08 14:10:32  jalet 
    111 # Copyright year changed. 
    112 # 
    113 # Revision 1.63  2003/11/24 16:50:58  jalet 
    114 # Old help message deletedd 
    115 # 
    116 # Revision 1.62  2003/11/12 23:28:38  jalet 
    117 # More work on new backend. This commit may be unstable. 
    118 # 
    119 # Revision 1.61  2003/11/12 13:06:35  jalet 
    120 # Bug fix wrt no user/group name command line argument to edpykota 
    121 # 
    122 # Revision 1.60  2003/10/09 21:25:24  jalet 
    123 # Multiple printer names or wildcards can be passed on the command line 
    124 # separated with commas. 
    125 # Beta phase. 
    126 # 
    127 # Revision 1.59  2003/10/07 09:07:27  jalet 
    128 # Character encoding added to please latest version of Python 
    129 # 
    130 # Revision 1.58  2003/10/03 12:27:01  jalet 
    131 # Several optimizations, especially with LDAP backend 
    132 # 
    133 # Revision 1.57  2003/08/20 16:01:19  jalet 
    134 # Comment added. 
    135 # 
    136 # Revision 1.56  2003/07/29 20:55:17  jalet 
    137 # 1.14 is out ! 
    138 # 
    139 # Revision 1.55  2003/07/28 09:11:12  jalet 
    140 # PyKota now tries to add its attributes intelligently in existing LDAP 
    141 # directories. 
    142 # 
    143 # Revision 1.54  2003/07/21 06:32:42  jalet 
    144 # Prevents email messages to be sent at modification/creation time for 
    145 # a user/group quota 
    146 # 
    147 # Revision 1.53  2003/07/09 06:03:41  jalet 
    148 # Fixed typo when using edpykota --prototype 
    149 # 
    150 # Revision 1.52  2003/07/07 12:11:13  jalet 
    151 # Small fix 
    152 # 
    153 # Revision 1.51  2003/07/07 11:55:50  jalet 
    154 # Small fix 
    155 # 
    156 # Revision 1.50  2003/07/05 12:33:53  jalet 
    157 # More on previous fix. 
    158 # 
    159 # Revision 1.49  2003/07/05 12:32:07  jalet 
    160 # Ensure that the user don't pass more than two prices for a printer. 
    161 # 
    162 # Revision 1.48  2003/06/25 19:52:30  jalet 
    163 # Should be ready for testing :-) 
    164 # 
    165 # Revision 1.47  2003/06/25 14:10:01  jalet 
    166 # Hey, it may work (edpykota --reset excepted) ! 
    167 # 
    168 # Revision 1.46  2003/06/16 11:59:09  jalet 
    169 # More work on LDAP 
    170 # 
    171 # Revision 1.45  2003/06/11 19:32:00  jalet 
    172 # Severe bug wrt account balance setting should be corrected. 
    173 # 
    174 # Revision 1.44  2003/04/29 22:03:38  jalet 
    175 # Better error handling. 
    176 # 
    177 # Revision 1.43  2003/04/23 22:13:56  jalet 
    178 # Preliminary support for LPRng added BUT STILL UNTESTED. 
    179 # 
    180 # Revision 1.42  2003/04/17 13:38:47  jalet 
    181 # Docstring corrected for better manual page 
    182 # 
    183 # Revision 1.41  2003/04/16 12:35:49  jalet 
    184 # Groups quota work now ! 
    185 # 
    186 # Revision 1.40  2003/04/16 08:22:09  jalet 
    187 # More strict error detection. 
    188 # Minor code rewrite to avoid some repetitive tests. 
    189 # 
    190 # Revision 1.39  2003/04/16 08:01:53  jalet 
    191 # edpykota --charge command line option works now. 
    192 # 
    193 # Revision 1.38  2003/04/15 22:02:43  jalet 
    194 # More complete docstring 
    195 # 
    196 # Revision 1.37  2003/04/15 21:58:33  jalet 
    197 # edpykota now accepts a --delete option. 
    198 # Preparation to allow edpykota to accept much more command line options 
    199 # (WARNING : docstring is OK, but code isn't !) 
    200 # 
    201 # Revision 1.36  2003/04/15 13:55:28  jalet 
    202 # Options --limitby and --balance added to edpykota 
    203 # 
    204 # Revision 1.35  2003/04/15 13:06:39  jalet 
    205 # Allow to add a printer without any user 
    206 # 
    207 # Revision 1.34  2003/04/11 16:51:11  jalet 
    208 # Bug fix for edpykota --add with users who already had a quota on the printer. 
    209 # 
    210 # Revision 1.33  2003/04/10 21:47:20  jalet 
    211 # Job history added. Upgrade script neutralized for now ! 
    212 # 
    213 # Revision 1.32  2003/04/08 21:31:39  jalet 
    214 # (anything or 0) = anything !!! Go back to school Jerome ! 
    215 # 
    216 # Revision 1.31  2003/04/08 21:13:44  jalet 
    217 # Prepare --groups option to work. 
    218 # 
    219 # Revision 1.30  2003/04/08 21:10:18  jalet 
    220 # Checks --groups option presence instead of --users because --users is the default. 
    221 # 
    222 # Revision 1.29  2003/04/05 09:28:56  jalet 
    223 # Unnecessary message was logged 
    224 # 
    225 # Revision 1.28  2003/03/29 13:45:26  jalet 
    226 # GPL paragraphs were incorrectly (from memory) copied into the sources. 
    227 # Two README files were added. 
    228 # Upgrade script for PostgreSQL pre 1.01 schema was added. 
    229 # 
    230 # Revision 1.27  2003/03/10 00:23:04  jalet 
    231 # Bad english 
    232 # 
    233 # Revision 1.26  2003/03/10 00:11:27  jalet 
    234 # Cleaner example. 
    235 # 
    236 # Revision 1.25  2003/03/09 23:56:21  jalet 
    237 # Option noquota added to do accounting only. 
    238 # 
    239 # Revision 1.24  2003/02/27 23:48:41  jalet 
    240 # Correctly maps PyKota's log levels to syslog log levels 
    241 # 
    242 # Revision 1.23  2003/02/27 22:55:20  jalet 
    243 # WARN log priority doesn't exist. 
    244 # 
    245 # Revision 1.22  2003/02/27 09:37:02  jalet 
    246 # Wildcards seem to work now 
    247 # 
    248 # Revision 1.21  2003/02/27 09:04:46  jalet 
    249 # user and group names can be passed as wildcards if the --add option 
    250 # is not set. The default is to act on all users or groups. 
    251 # 
    252 # Revision 1.20  2003/02/10 12:07:30  jalet 
    253 # Now repykota should output the recorded total page number for each printer too. 
    254 # 
    255 # Revision 1.19  2003/02/09 13:40:29  jalet 
    256 # typo 
    257 # 
    258 # Revision 1.18  2003/02/09 12:56:53  jalet 
    259 # Internationalization begins... 
    260 # 
    261 # Revision 1.17  2003/02/08 22:47:23  jalet 
    262 # Option --reset can now be used without having to use soft and hard limits 
    263 # on the command line. 
    264 # 
    265 # Revision 1.16  2003/02/08 22:39:46  jalet 
    266 # --reset command line option added 
    267 # 
    268 # Revision 1.15  2003/02/08 22:20:01  jalet 
    269 # Clarification on why we don't check with /etc/passwd to see if the user 
    270 # name is valid or not. 
    271 # 
    272 # Revision 1.14  2003/02/08 22:18:15  jalet 
    273 # Now checks user and group names for validity before adding them 
    274 # 
    275 # Revision 1.13  2003/02/08 22:09:02  jalet 
    276 # Only printer was added the first time. 
    277 # 
    278 # Revision 1.12  2003/02/08 21:44:49  jalet 
    279 # Python 2.1 string module doesn't define ascii_letters 
    280 # 
    281 # Revision 1.11  2003/02/08 09:42:44  jalet 
    282 # Better handle wrong or bad command line arguments 
    283 # 
    284 # Revision 1.10  2003/02/08 09:39:20  jalet 
    285 # typos 
    286 # 
    287 # Revision 1.9  2003/02/08 09:38:06  jalet 
    288 # Badly placed test 
    289 # 
    290 # Revision 1.8  2003/02/07 22:53:57  jalet 
    291 # Checks if printer name is valid before adding it 
    292 # 
    293 # Revision 1.7  2003/02/07 22:17:58  jalet 
    294 # Incomplete test 
    295 # 
    296 # Revision 1.6  2003/02/07 22:13:13  jalet 
    297 # Perhaps edpykota is now able to add printers !!! Oh, stupid me ! 
    298 # 
    299 # Revision 1.5  2003/02/06 14:49:04  jalet 
    300 # edpykota should be ok now 
    301 # 
    302 # Revision 1.4  2003/02/06 14:28:59  jalet 
    303 # edpykota should be ok, minus some typos 
    304 # 
    305 # Revision 1.3  2003/02/06 10:47:21  jalet 
    306 # Documentation string and command line options didn't match. 
    307 # 
    308 # Revision 1.2  2003/02/06 10:39:23  jalet 
    309 # Preliminary edpykota work. 
    310 # 
    311 # Revision 1.1  2003/02/05 21:41:09  jalet 
    312 # Skeletons added for all command line tools 
    313 # 
    31424# 
    31525# 
  • pykota/trunk/bin/lprngpykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.18  2005/03/02 17:00:03  jalet 
    27 # Fixed a bad copy&paste 
    28 # 
    29 # Revision 1.17  2005/02/16 00:29:33  jalet 
    30 # Fixed the maxdenybanners directive. 
    31 # Introduced the denyduplicates directive. 
    32 # Fixed some database related glitches. 
    33 # 
    34 # Revision 1.16  2005/02/14 23:39:50  jalet 
    35 # Introduces the new 'trustjobsize' directive to workaround some printers 
    36 # generating unstable internal page counter values when queried through SNMP. 
    37 # 
    38 # Revision 1.15  2005/02/14 22:53:44  jalet 
    39 # Now always precomputes the job's size with the internal PDL parser, and not 
    40 # only when 'enforcement: strict' was set in pykota.conf 
    41 # 
    42 # Revision 1.14  2005/02/13 22:48:37  jalet 
    43 # Added the md5sum to the history 
    44 # 
    45 # Revision 1.13  2005/01/17 08:44:23  jalet 
    46 # Modified copyright years 
    47 # 
    48 # Revision 1.12  2004/10/25 17:05:36  jalet 
    49 # Another fix for LPRng support debug messages : I'm sure I'm completely stupid now. 
    50 # 
    51 # Revision 1.11  2004/10/25 15:14:59  jalet 
    52 # Fixed typo in code added to debug LPRng problem 
    53 # 
    54 # Revision 1.10  2004/10/24 09:06:46  jalet 
    55 # Added debug messages for LPRng support possible problem ??? 
    56 # 
    57 # Revision 1.9  2004/10/19 21:37:57  jalet 
    58 # Fixes recently introduced bug 
    59 # 
    60 # Revision 1.8  2004/10/13 20:51:27  jalet 
    61 # Made debugging levels be the same in cupspykota and lprngpykota. 
    62 # Now outputs more information in informational messages : user, printer, jobid 
    63 # 
    64 # Revision 1.7  2004/09/13 16:02:44  jalet 
    65 # Added fix for incorrect job's size when hardware accounting fails 
    66 # 
    67 # Revision 1.6  2004/09/02 14:40:13  jalet 
    68 # Another bunch of LPRng fixes 
    69 # 
    70 # Revision 1.5  2004/07/23 11:19:48  jalet 
    71 # 1.19beta is out ! 
    72 # 
    73 # Revision 1.4  2004/07/22 22:41:48  jalet 
    74 # Hardware accounting for LPRng should be OK now. UNTESTED. 
    75 # 
    76 # Revision 1.3  2004/07/21 09:35:48  jalet 
    77 # Software accounting seems to be OK with LPRng support now 
    78 # 
    79 # Revision 1.2  2004/07/20 22:47:38  jalet 
    80 # Sanitizing 
    81 # 
    82 # Revision 1.1  2004/07/17 20:37:27  jalet 
    83 # Missing file... Am I really stupid ? 
    84 # 
    8524# 
    8625# 
  • pykota/trunk/bin/pkbanner

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.12  2005/01/17 08:44:23  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.11  2004/12/03 12:34:28  jalet 
    30 # Fixed the default value for the --savetoner command line option 
    31 # 
    32 # Revision 1.10  2004/11/17 13:28:19  jalet 
    33 # Fixed some typo in the help 
    34 # 
    35 # Revision 1.9  2004/11/17 13:24:05  jalet 
    36 # Improved pkbanner's help 
    37 # 
    38 # Revision 1.8  2004/11/17 13:12:04  jalet 
    39 # Implemented the --savetoner command line option 
    40 # 
    41 # Revision 1.7  2004/11/15 22:29:01  jalet 
    42 # Moved title and filename to the left to free some space. 
    43 # 
    44 # Revision 1.6  2004/11/15 22:20:27  jalet 
    45 # Now outputs strings as-is, and not title-ized 
    46 # 
    47 # Revision 1.5  2004/11/15 22:01:34  jalet 
    48 # Improved banner handling. 
    49 # Fix for raw printing and banners. 
    50 # 
    51 # Revision 1.4  2004/11/15 19:59:34  jalet 
    52 # PyKota banners now basically work ! 
    53 # 
    54 # Revision 1.3  2004/11/12 23:46:44  jalet 
    55 # Heavy work on pkbanner. Not finished yet though, but mostly works. 
    56 # 
    57 # Revision 1.2  2004/11/11 14:25:48  jalet 
    58 # Added some TODO comments 
    59 # 
    60 # Revision 1.1  2004/11/10 22:48:47  jalet 
    61 # Banner generator's skeleton added 
    62 # 
    6324# 
    6425# 
  • pykota/trunk/bin/pkhint

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.23  2005/02/22 17:18:18  jalet 
    27 # Simplified pkhint's output to take care of the software() accounter 
    28 # optimization and of the internal PJL accounter. 
    29 # 
    30 # Revision 1.22  2005/01/17 08:44:23  jalet 
    31 # Modified copyright years 
    32 # 
    33 # Revision 1.21  2004/10/13 08:26:06  jalet 
    34 # Doesn't suggest hardware(snmp) anymore if the command used was not snmpget. 
    35 # This caused problem when snmpwalk was successful but not snmpget for example 
    36 # 
    37 # Revision 1.20  2004/10/13 08:09:19  jalet 
    38 # More complete PATH. 
    39 # pkhint doesn't use absolute path to search for helper commands anymore. 
    40 # 
    41 # Revision 1.19  2004/10/11 22:53:05  jalet 
    42 # Postponed string interpolation to help message's output method 
    43 # 
    44 # Revision 1.18  2004/10/11 12:49:06  jalet 
    45 # Renders help translatable 
    46 # 
    47 # Revision 1.17  2004/09/23 19:29:36  jalet 
    48 # If SNMP accounting is possible, pkhint now suggests to use the internal 
    49 # SNMP handling instead of the external one. No real test is done for now, 
    50 # though. 
    51 # 
    52 # Revision 1.16  2004/07/27 21:50:29  jalet 
    53 # Small fix for %(port)s thanks to rpinheiro 
    54 # 
    55 # Revision 1.15  2004/07/20 22:19:45  jalet 
    56 # Sanitized a bit + use of gettext 
    57 # 
    58 # Revision 1.14  2004/07/01 19:56:40  jalet 
    59 # Better dispatching of error messages 
    60 # 
    61 # Revision 1.13  2004/06/29 07:55:18  jalet 
    62 # Doesn't output the warning message when --help or --version is asked 
    63 # 
    64 # Revision 1.12  2004/06/29 07:53:11  jalet 
    65 # Improved pkhint 
    66 # 
    67 # Revision 1.11  2004/06/18 13:34:48  jalet 
    68 # Now all tracebacks include PyKota's version number 
    69 # 
    70 # Revision 1.10  2004/06/07 18:43:40  jalet 
    71 # Fixed over-verbose exits when displaying help or version number 
    72 # 
    73 # Revision 1.9  2004/06/03 21:50:34  jalet 
    74 # Improved error logging. 
    75 # crashrecipient directive added. 
    76 # Now exports the job's size in bytes too. 
    77 # 
    78 # Revision 1.8  2004/05/18 14:48:47  jalet 
    79 # Big code changes to completely remove the need for "requester" directives, 
    80 # jsut use "hardware(... your previous requester directive's content ...)" 
    81 # 
    82 # Revision 1.7  2004/05/13 13:59:27  jalet 
    83 # Code simplifications 
    84 # 
    85 # Revision 1.6  2004/03/30 12:59:47  jalet 
    86 # Fixed path problem 
    87 # 
    88 # Revision 1.5  2004/02/09 13:07:06  jalet 
    89 # Should now be able to handle network + pjl printers 
    90 # 
    91 # Revision 1.4  2004/02/09 12:35:19  jalet 
    92 # De-uglyfication. 
    93 # Now works with older CUPS (1.14) which don't detect the cupspykota backend but accept it anyway. 
    94 # 
    95 # Revision 1.3  2004/02/07 13:56:03  jalet 
    96 # Help 
    97 # 
    98 # Revision 1.2  2004/02/07 13:47:55  jalet 
    99 # More warnings 
    100 # 
    101 # Revision 1.1  2004/02/07 13:45:51  jalet 
    102 # Preliminary work on the pkhint command 
    103 # 
    10424# 
    10525# 
  • pykota/trunk/bin/pkmail

    r2146 r2147  
    2323# $Id$ 
    2424# 
    25 # $Log$ 
    26 # Revision 1.4  2005/02/22 17:36:58  jalet 
    27 # Fixed the command's help 
    28 # 
    29 # Revision 1.3  2005/01/17 08:44:24  jalet 
    30 # Modified copyright years 
    31 # 
    32 # Revision 1.2  2004/11/21 22:16:11  jalet 
    33 # Added some kind of protection against bad guys 
    34 # 
    35 # Revision 1.1  2004/11/21 21:50:03  jalet 
    36 # Introduced the new pkmail command as a simple email gateway 
    3725# 
    3826 
  • pykota/trunk/bin/pkpgcounter

    r2146 r2147  
    2323# $Id$ 
    2424# 
    25 # $Log$ 
    26 # Revision 1.12  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.11  2004/05/21 20:40:07  jalet 
    30 # All the code for pkpgcounter is now in pdlanalyzer.py 
    31 # 
    32 # Revision 1.10  2004/05/18 09:59:54  jalet 
    33 # pkpgcounter is now just a wrapper around the PDLAnalyzer class 
    34 # 
    35 # Revision 1.9  2004/05/10 07:23:21  jalet 
    36 # pykotme now uses pkpgcounter to compute the job's size. 
    37 # 
    38 # Revision 1.8  2004/05/08 15:12:23  jalet 
    39 # Improved PCL6 support 
    40 # 
    41 # Revision 1.7  2004/05/07 23:08:21  jalet 
    42 # Skeleton for PCLXL aka PCL6 
    43 # Added the "potential" fix for rastertoprinter's output 
    44 # 
    45 # Revision 1.6  2004/05/06 21:19:27  jalet 
    46 # Doesn't exit anymore on the first nul byte 
    47 # 
    48 # Revision 1.5  2004/05/06 12:37:29  jalet 
    49 # pkpgcounter : comments 
    50 # pkprinters : when --add is used, existing printers are now skipped. 
    51 # 
    52 # Revision 1.4  2004/05/04 12:21:55  jalet 
    53 # Now uses mmap in PCL mode 
    54 # 
    55 # Revision 1.3  2004/05/04 04:39:26  jalet 
    56 # Better PCL support 
    57 # 
    58 # Revision 1.2  2004/05/04 03:14:26  jalet 
    59 # fixed copy&paste problem in pkpgcounter 
    60 # 
    61 # Revision 1.1  2004/04/08 17:07:42  jalet 
    62 # pkpgcounter added 
    63 # 
    6425# 
    6526 
  • pykota/trunk/bin/pkprinters

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.19  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.18  2004/10/20 12:32:51  jalet 
    30 # Fixed typo in help 
    31 # 
    32 # Revision 1.17  2004/10/13 21:40:10  jalet 
    33 # Now mandates that the user be a PyKota administrator to allow dangerous 
    34 # command line options. --list is still allowed to mere mortals though. 
    35 # 
    36 # Revision 1.16  2004/10/11 22:53:05  jalet 
    37 # Postponed string interpolation to help message's output method 
    38 # 
    39 # Revision 1.15  2004/10/11 12:49:06  jalet 
    40 # Renders help translatable 
    41 # 
    42 # Revision 1.14  2004/07/19 22:37:13  jalet 
    43 # pykosd is now a very good tool 
    44 # 
    45 # Revision 1.13  2004/07/01 19:56:41  jalet 
    46 # Better dispatching of error messages 
    47 # 
    48 # Revision 1.12  2004/07/01 17:45:47  jalet 
    49 # Added code to handle the description field for printers 
    50 # 
    51 # Revision 1.11  2004/06/18 13:34:48  jalet 
    52 # Now all tracebacks include PyKota's version number 
    53 # 
    54 # Revision 1.10  2004/06/07 18:43:40  jalet 
    55 # Fixed over-verbose exits when displaying help or version number 
    56 # 
    57 # Revision 1.9  2004/06/03 21:50:34  jalet 
    58 # Improved error logging. 
    59 # crashrecipient directive added. 
    60 # Now exports the job's size in bytes too. 
    61 # 
    62 # Revision 1.8  2004/05/06 20:30:24  jalet 
    63 # Added --skipexisting command line option to pkprinters 
    64 # 
    65 # Revision 1.7  2004/05/06 12:51:58  jalet 
    66 # Documentation 
    67 # 
    68 # Revision 1.6  2004/05/06 12:37:29  jalet 
    69 # pkpgcounter : comments 
    70 # pkprinters : when --add is used, existing printers are now skipped. 
    71 # 
    72 # Revision 1.5  2004/04/16 16:52:09  jalet 
    73 # Better formatting 
    74 # 
    75 # Revision 1.4  2004/04/16 16:47:57  jalet 
    76 # pkprinters now accept the --list command line option 
    77 # 
    78 # Revision 1.3  2004/02/04 13:24:41  jalet 
    79 # pkprinters can now remove printers from printers groups. 
    80 # 
    81 # Revision 1.2  2004/02/04 12:52:37  jalet 
    82 # pkprinters' help 
    83 # 
    84 # Revision 1.1  2004/02/04 11:16:59  jalet 
    85 # pkprinters command line tool added. 
    86 # 
    8724# 
    8825# 
  • pykota/trunk/bin/pykosd

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.12  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.11  2004/10/17 19:41:54  jalet 
    30 # Fixed help message which displayed "pkprinters" instead of "pykosd" 
    31 # 
    32 # Revision 1.10  2004/10/11 22:53:05  jalet 
    33 # Postponed string interpolation to help message's output method 
    34 # 
    35 # Revision 1.9  2004/10/11 12:49:06  jalet 
    36 # Renders help translatable 
    37 # 
    38 # Revision 1.8  2004/10/06 10:05:47  jalet 
    39 # Minor changes to allow any PyKota administrator to launch enhanced versions 
    40 # of the commands, and not only the root user. 
    41 # 
    42 # Revision 1.7  2004/07/20 22:42:26  jalet 
    43 # pykosd now supports setting color 
    44 # 
    45 # Revision 1.6  2004/07/20 22:29:49  jalet 
    46 # pykosd now supports setting the font 
    47 # 
    48 # Revision 1.5  2004/07/20 22:19:45  jalet 
    49 # Sanitized a bit + use of gettext 
    50 # 
    51 # Revision 1.4  2004/07/19 22:37:13  jalet 
    52 # pykosd is now a very good tool 
    53 # 
    54 # Revision 1.3  2004/07/07 21:44:15  jalet 
    55 # Formatting improvements 
    56 # 
    57 # Revision 1.2  2004/07/07 14:14:31  jalet 
    58 # Now handles limits by quota in addition to limits by balance 
    59 # 
    60 # Revision 1.1  2004/07/07 13:21:27  jalet 
    61 # Introduction of the pykosd command 
    62 # 
    6324# 
    6425# 
  • pykota/trunk/bin/pykotme

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.18  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.17  2004/11/12 23:46:44  jalet 
    30 # Heavy work on pkbanner. Not finished yet though, but mostly works. 
    31 # 
    32 # Revision 1.16  2004/10/11 22:53:05  jalet 
    33 # Postponed string interpolation to help message's output method 
    34 # 
    35 # Revision 1.15  2004/10/11 12:49:06  jalet 
    36 # Renders help translatable 
    37 # 
    38 # Revision 1.14  2004/10/06 10:05:47  jalet 
    39 # Minor changes to allow any PyKota administrator to launch enhanced versions 
    40 # of the commands, and not only the root user. 
    41 # 
    42 # Revision 1.13  2004/07/01 19:56:42  jalet 
    43 # Better dispatching of error messages 
    44 # 
    45 # Revision 1.12  2004/06/18 13:34:49  jalet 
    46 # Now all tracebacks include PyKota's version number 
    47 # 
    48 # Revision 1.11  2004/06/07 18:43:40  jalet 
    49 # Fixed over-verbose exits when displaying help or version number 
    50 # 
    51 # Revision 1.10  2004/06/03 21:50:34  jalet 
    52 # Improved error logging. 
    53 # crashrecipient directive added. 
    54 # Now exports the job's size in bytes too. 
    55 # 
    56 # Revision 1.9  2004/05/21 20:53:34  jalet 
    57 # Now pykotme doesn't spawn a new process anymore to compute job's size, but 
    58 # use the PDLAnalyzer class directly 
    59 # 
    60 # Revision 1.8  2004/05/10 07:23:21  jalet 
    61 # pykotme now uses pkpgcounter to compute the job's size. 
    62 # 
    63 # Revision 1.7  2004/01/12 22:43:40  jalet 
    64 # New formula to compute a job's price 
    65 # 
    66 # Revision 1.6  2004/01/08 14:10:32  jalet 
    67 # Copyright year changed. 
    68 # 
    69 # Revision 1.5  2003/10/09 21:25:25  jalet 
    70 # Multiple printer names or wildcards can be passed on the command line 
    71 # separated with commas. 
    72 # Beta phase. 
    73 # 
    74 # Revision 1.4  2003/10/07 09:07:27  jalet 
    75 # Character encoding added to please latest version of Python 
    76 # 
    77 # Revision 1.3  2003/07/29 20:55:17  jalet 
    78 # 1.14 is out ! 
    79 # 
    80 # Revision 1.2  2003/07/25 10:41:29  jalet 
    81 # Better documentation. 
    82 # pykotme now displays the current user's account balance. 
    83 # Some test changed in ldap module. 
    84 # 
    85 # Revision 1.1  2003/07/03 09:44:01  jalet 
    86 # Now includes the pykotme utility 
    87 # 
    8824# 
    8925# 
  • pykota/trunk/bin/repykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.53  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.52  2004/10/11 22:53:05  jalet 
    30 # Postponed string interpolation to help message's output method 
    31 # 
    32 # Revision 1.51  2004/10/11 12:49:06  jalet 
    33 # Renders help translatable 
    34 # 
    35 # Revision 1.50  2004/10/06 10:05:47  jalet 
    36 # Minor changes to allow any PyKota administrator to launch enhanced versions 
    37 # of the commands, and not only the root user. 
    38 # 
    39 # Revision 1.49  2004/06/18 13:34:49  jalet 
    40 # Now all tracebacks include PyKota's version number 
    41 # 
    42 # Revision 1.48  2004/06/07 18:43:41  jalet 
    43 # Fixed over-verbose exits when displaying help or version number 
    44 # 
    45 # Revision 1.47  2004/06/03 21:50:34  jalet 
    46 # Improved error logging. 
    47 # crashrecipient directive added. 
    48 # Now exports the job's size in bytes too. 
    49 # 
    50 # Revision 1.46  2004/01/08 14:10:32  jalet 
    51 # Copyright year changed. 
    52 # 
    53 # Revision 1.45  2003/10/09 21:25:25  jalet 
    54 # Multiple printer names or wildcards can be passed on the command line 
    55 # separated with commas. 
    56 # Beta phase. 
    57 # 
    58 # Revision 1.44  2003/10/07 09:07:27  jalet 
    59 # Character encoding added to please latest version of Python 
    60 # 
    61 # Revision 1.43  2003/08/18 16:35:28  jalet 
    62 # New pychecker pass, on the tools this time. 
    63 # 
    64 # Revision 1.42  2003/07/29 20:55:17  jalet 
    65 # 1.14 is out ! 
    66 # 
    67 # Revision 1.41  2003/07/07 12:19:52  jalet 
    68 # Now repykota and warnpykota --groups check the groups the user is a member of 
    69 # in the print quota database, not in the system passwd/group files 
    70 # 
    71 # Revision 1.40  2003/06/30 12:46:15  jalet 
    72 # Extracted reporting code. 
    73 # 
    74 # Revision 1.39  2003/06/25 14:10:01  jalet 
    75 # Hey, it may work (edpykota --reset excepted) ! 
    76 # 
    77 # Revision 1.38  2003/06/15 22:26:52  jalet 
    78 # More work on LDAP 
    79 # 
    80 # Revision 1.37  2003/06/10 16:37:54  jalet 
    81 # Deletion of the second user which is not needed anymore. 
    82 # Added a debug configuration field in /etc/pykota.conf 
    83 # All queries can now be sent to the logger in debug mode, this will 
    84 # greatly help improve performance when time for this will come. 
    85 # 
    86 # Revision 1.36  2003/06/06 14:21:08  jalet 
    87 # New LDAP schema. 
    88 # Small bug fixes. 
    89 # 
    90 # Revision 1.35  2003/05/28 13:56:24  jalet 
    91 # Unneeded code. 
    92 # 
    93 # Revision 1.34  2003/04/29 22:03:38  jalet 
    94 # Better error handling. 
    95 # 
    96 # Revision 1.33  2003/04/28 08:25:48  jalet 
    97 # Small display bug in repykota was fixed. 
    98 # 
    99 # Revision 1.32  2003/04/23 22:13:56  jalet 
    100 # Preliminary support for LPRng added BUT STILL UNTESTED. 
    101 # 
    102 # Revision 1.31  2003/04/23 09:58:17  jalet 
    103 # Prices per page/job are now displayed 
    104 # 
    105 # Revision 1.30  2003/04/18 08:34:51  jalet 
    106 # Minor fix. 
    107 # 
    108 # Revision 1.29  2003/04/18 08:29:30  jalet 
    109 # Minor bug fix 
    110 # 
    111 # Revision 1.28  2003/04/17 09:36:30  jalet 
    112 # Bad alignment in output 
    113 # 
    114 # Revision 1.27  2003/04/17 09:26:21  jalet 
    115 # repykota now reports account balances too. 
    116 # 
    117 # Revision 1.26  2003/04/16 12:35:49  jalet 
    118 # Groups quota work now ! 
    119 # 
    120 # Revision 1.25  2003/04/15 11:30:57  jalet 
    121 # More work done on money print charging. 
    122 # Minor bugs corrected. 
    123 # All tools now access to the storage as priviledged users, repykota excepted. 
    124 # 
    125 # Revision 1.24  2003/04/14 20:05:20  jalet 
    126 # Reversed test. 
    127 # 
    128 # Revision 1.23  2003/04/11 14:42:54  jalet 
    129 # Translations 
    130 # 
    131 # Revision 1.21  2003/04/10 21:47:20  jalet 
    132 # Job history added. Upgrade script neutralized for now ! 
    133 # 
    134 # Revision 1.20  2003/04/08 21:31:39  jalet 
    135 # (anything or 0) = anything !!! Go back to school Jerome ! 
    136 # 
    137 # Revision 1.19  2003/04/08 21:13:44  jalet 
    138 # Prepare --groups option to work. 
    139 # 
    140 # Revision 1.18  2003/04/08 21:10:18  jalet 
    141 # Checks --groups option presence instead of --users because --users is the default. 
    142 # 
    143 # Revision 1.17  2003/03/29 13:45:27  jalet 
    144 # GPL paragraphs were incorrectly (from memory) copied into the sources. 
    145 # Two README files were added. 
    146 # Upgrade script for PostgreSQL pre 1.01 schema was added. 
    147 # 
    148 # Revision 1.16  2003/03/09 23:56:21  jalet 
    149 # Option noquota added to do accounting only. 
    150 # 
    151 # Revision 1.15  2003/03/09 23:39:14  jalet 
    152 # Simplified translations. 
    153 # 
    154 # Revision 1.14  2003/02/27 09:04:02  jalet 
    155 # Missing translation 
    156 # 
    157 # Revision 1.13  2003/02/27 08:44:01  jalet 
    158 # Check to see if the printer was ever used at all, and displays "unknown" 
    159 # as the pagecounter value in this casCheck to see if the printer was ever used at all, and displays "unknown" 
    160 # as the pagecounter value in this case. 
    161 # 
    162 # Revision 1.12  2003/02/17 23:02:23  jalet 
    163 # getGraceDelay for printer 
    164 # 
    165 # Revision 1.11  2003/02/10 12:12:34  jalet 
    166 # Translations. 
    167 # 
    168 # Revision 1.10  2003/02/10 12:07:30  jalet 
    169 # Now repykota should output the recorded total page number for each printer too. 
    170 # 
    171 # Revision 1.9  2003/02/09 13:40:29  jalet 
    172 # typo 
    173 # 
    174 # Revision 1.8  2003/02/09 12:56:53  jalet 
    175 # Internationalization begins... 
    176 # 
    177 # Revision 1.7  2003/02/08 23:17:20  jalet 
    178 # repykota now outputs life time page counters and the total pages printed by 
    179 # all users/groups on each printer. 
    180 # 
    181 # Revision 1.6  2003/02/07 23:39:16  jalet 
    182 # Typos 
    183 # 
    184 # Revision 1.5  2003/02/07 08:38:36  jalet 
    185 # Missing conversion. 
    186 # empty line between two printers 
    187 # 
    188 # Revision 1.4  2003/02/07 08:34:15  jalet 
    189 # Test wrt date limit was wrong 
    190 # 
    191 # Revision 1.3  2003/02/07 00:08:52  jalet 
    192 # Typos 
    193 # 
    194 # Revision 1.2  2003/02/06 23:58:05  jalet 
    195 # repykota should be ok 
    196 # 
    19724# 
    19825# 
  • pykota/trunk/bin/warnpykota

    r2146 r2147  
    2222# 
    2323# $Id$ 
    24 # 
    25 # $Log$ 
    26 # Revision 1.37  2005/01/17 08:44:24  jalet 
    27 # Modified copyright years 
    28 # 
    29 # Revision 1.36  2004/10/12 17:08:32  jalet 
    30 # alreadydone mapping was reset in each iteration, this is fixed. 
    31 # 
    32 # Revision 1.35  2004/10/12 09:14:03  jalet 
    33 # Ensures that warnpykota still test other quota entries for each user if 
    34 # he has not been warned, even if limited by his account balance. 
    35 # 
    36 # Revision 1.34  2004/10/12 09:09:04  jalet 
    37 # Now warnpykota warns users limited by balance only once per launch. 
    38 # 
    39 # Revision 1.33  2004/10/12 08:58:53  jalet 
    40 # Now warnpykota only warns users who have already printed, to not confuse 
    41 # users who have just opened their account. 
    42 # 
    43 # Revision 1.32  2004/10/11 22:53:05  jalet 
    44 # Postponed string interpolation to help message's output method 
    45 # 
    46 # Revision 1.31  2004/10/11 12:49:06  jalet 
    47 # Renders help translatable 
    48 # 
    49 # Revision 1.30  2004/10/06 10:05:47  jalet 
    50 # Minor changes to allow any PyKota administrator to launch enhanced versions 
    51 # of the commands, and not only the root user. 
    52 # 
    53 # Revision 1.29  2004/06/18 13:34:49  jalet 
    54 # Now all tracebacks include PyKota's version number 
    55 # 
    56 # Revision 1.28  2004/06/07 18:43:41  jalet 
    57 # Fixed over-verbose exits when displaying help or version number 
    58 # 
    59 # Revision 1.27  2004/06/03 21:50:34  jalet 
    60 # Improved error logging. 
    61 # crashrecipient directive added. 
    62 # Now exports the job's size in bytes too. 
    63 # 
    64 # Revision 1.26  2004/01/08 14:10:32  jalet 
    65 # Copyright year changed. 
    66 # 
    67 # Revision 1.25  2003/10/09 21:25:26  jalet 
    68 # Multiple printer names or wildcards can be passed on the command line 
    69 # separated with commas. 
    70 # Beta phase. 
    71 # 
    72 # Revision 1.24  2003/10/07 09:07:28  jalet 
    73 # Character encoding added to please latest version of Python 
    74 # 
    75 # Revision 1.23  2003/08/18 16:35:28  jalet 
    76 # New pychecker pass, on the tools this time. 
    77 # 
    78 # Revision 1.22  2003/07/29 20:55:17  jalet 
    79 # 1.14 is out ! 
    80 # 
    81 # Revision 1.21  2003/07/07 12:19:52  jalet 
    82 # Now repykota and warnpykota --groups check the groups the user is a member of 
    83 # in the print quota database, not in the system passwd/group files 
    84 # 
    85 # Revision 1.20  2003/06/25 14:10:01  jalet 
    86 # Hey, it may work (edpykota --reset excepted) ! 
    87 # 
    88 # Revision 1.19  2003/04/29 22:03:38  jalet 
    89 # Better error handling. 
    90 # 
    91 # Revision 1.18  2003/04/23 22:13:56  jalet 
    92 # Preliminary support for LPRng added BUT STILL UNTESTED. 
    93 # 
    94 # Revision 1.17  2003/04/17 13:32:17  jalet 
    95 # bad documentation string 
    96 # 
    97 # Revision 1.16  2003/04/16 12:35:49  jalet 
    98 # Groups quota work now ! 
    99 # 
    100 # Revision 1.15  2003/04/10 21:47:20  jalet 
    101 # Job history added. Upgrade script neutralized for now ! 
    102 # 
    103 # Revision 1.14  2003/04/08 21:31:39  jalet 
    104 # (anything or 0) = anything !!! Go back to school Jerome ! 
    105 # 
    106 # Revision 1.13  2003/04/08 21:13:44  jalet 
    107 # Prepare --groups option to work. 
    108 # 
    109 # Revision 1.12  2003/04/08 21:10:18  jalet 
    110 # Checks --groups option presence instead of --users because --users is the default. 
    111 # 
    112 # Revision 1.11  2003/03/29 13:45:27  jalet 
    113 # GPL paragraphs were incorrectly (from memory) copied into the sources. 
    114 # Two README files were added. 
    115 # Upgrade script for PostgreSQL pre 1.01 schema was added. 
    116 # 
    117 # Revision 1.10  2003/03/25 11:45:32  jalet 
    118 # Clearer help. 
    119 # 
    120 # Revision 1.9  2003/03/09 23:39:14  jalet 
    121 # Simplified translations. 
    122 # 
    123 # Revision 1.8  2003/02/10 12:07:30  jalet 
    124 # Now repykota should output the recorded total page number for each printer too. 
    125 # 
    126 # Revision 1.7  2003/02/09 13:40:29  jalet 
    127 # typo 
    128 # 
    129 # Revision 1.6  2003/02/09 12:56:53  jalet 
    130 # Internationalization begins... 
    131 # 
    132 # Revision 1.5  2003/02/07 23:24:38  jalet 
    133 # Empty line deleted 
    134 # 
    135 # Revision 1.4  2003/02/06 23:25:40  jalet 
    136 # Cleaner docstring 
    137 # 
    138 # Revision 1.3  2003/02/06 23:20:02  jalet 
    139 # warnpykota doesn't need any user/group name argument, mimicing the 
    140 # warnquota disk quota tool. 
    141 # 
    142 # Revision 1.2  2003/02/06 22:54:33  jalet 
    143 # warnpykota should be ok 
    144 # 
    14524# 
    14625#