Changeset 2147 for pykota/trunk/bin
- Timestamp:
- 03/06/05 17:52:43 (19 years ago)
- Location:
- pykota/trunk/bin
- Files:
-
- 14 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/autopykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.9 2005/01/17 08:44:23 jalet27 # Modified copyright years28 #29 # Revision 1.8 2004/10/21 22:21:21 jalet30 # Fixes a string interpolation problem31 #32 # Revision 1.7 2004/10/13 08:09:19 jalet33 # 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 jalet37 # Postponed string interpolation to help message's output method38 #39 # Revision 1.5 2004/10/11 22:08:06 jalet40 # Incorrect doc for autopykota41 #42 # Revision 1.4 2004/10/11 12:49:05 jalet43 # Renders help translatable44 #45 # Revision 1.3 2004/10/06 07:51:07 jalet46 # Now autopykota uses 0.0 as the default value for initial account balance47 # if the --initbalance command line option is not used.48 #49 # Revision 1.2 2004/09/30 11:22:30 jalet50 # Extends the PATH and doesn't use absolute path anymore to launch edpykota.51 #52 # Revision 1.1 2004/09/30 09:52:45 jalet53 # Initial release of autopykota. Reading help or manpage is greatly54 # encouraged !55 #56 24 # 57 25 # -
pykota/trunk/bin/cupspykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.89 2005/02/16 00:29:33 jalet27 # 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 jalet32 # Introduces the new 'trustjobsize' directive to workaround some printers33 # generating unstable internal page counter values when queried through SNMP.34 #35 # Revision 1.87 2005/02/14 22:53:44 jalet36 # Now always precomputes the job's size with the internal PDL parser, and not37 # only when 'enforcement: strict' was set in pykota.conf38 #39 # Revision 1.86 2005/02/13 22:48:37 jalet40 # Added the md5sum to the history41 #42 # Revision 1.85 2005/02/13 22:02:28 jalet43 # Big database structure changes. Upgrade script is now included as well as44 # 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 jalet50 # Modified copyright years51 #52 # Revision 1.83 2005/01/06 23:23:35 jalet53 # Regain priviledge the time to read the job control file to extract the client54 # hostname55 #56 # Revision 1.82 2005/01/06 22:52:53 jalet57 # Implemented the dropping of priviledges. Beware, beware...58 #59 # Revision 1.81 2004/12/07 16:54:02 jalet60 # Now logs as errors differences between computed and precomputed job's sizes61 #62 # Revision 1.80 2004/11/15 22:12:46 jalet63 # Fix for the Fix !!!64 #65 # Revision 1.79 2004/11/15 22:01:34 jalet66 # Improved banner handling.67 # Fix for raw printing and banners.68 #69 # Revision 1.78 2004/11/15 19:59:34 jalet70 # PyKota banners now basically work !71 #72 # Revision 1.77 2004/11/06 22:40:57 jalet73 # Safer code74 #75 # Revision 1.76 2004/11/06 22:35:58 jalet76 # Added a miniparser for IPP messages (RFC 2910). The job-originating-host-name77 # retrieval is now fiable, unless the CUPS developpers change something...78 #79 # Revision 1.75 2004/11/01 15:45:25 jalet80 # Added many debug messages.81 # Added some code to prevent short writes.82 #83 # Revision 1.74 2004/10/13 20:51:27 jalet84 # Made debugging levels be the same in cupspykota and lprngpykota.85 # Now outputs more information in informational messages : user, printer, jobid86 #87 # Revision 1.73 2004/10/13 16:56:45 jalet88 # Added a space to the pattern to differentiate jobs which id begins with89 # the same digits, like jobs 87 and 879 for example : if printed by same90 # user on same printer, but from a different host this could have broken91 # the result. (In reality this couldn't happen because 879 would be the92 # last line to match anyway because of job ordering, but we never know93 # if the page_log file gets corrupt somewhat)94 #95 # Revision 1.72 2004/09/13 16:02:44 jalet96 # Added fix for incorrect job's size when hardware accounting fails97 #98 # Revision 1.71 2004/09/06 17:05:06 jalet99 # Fix for autodetection of SC_OPEN_MAX100 #101 # Revision 1.70 2004/07/26 09:20:27 jalet102 # Unneeded module103 #104 # Revision 1.69 2004/07/22 22:41:47 jalet105 # Hardware accounting for LPRng should be OK now. UNTESTED.106 #107 # Revision 1.68 2004/07/20 22:19:44 jalet108 # Sanitized a bit + use of gettext109 #110 # Revision 1.67 2004/07/16 12:22:45 jalet111 # LPRng support early version112 #113 # Revision 1.66 2004/07/01 19:56:25 jalet114 # Better dispatching of error messages115 #116 # Revision 1.65 2004/06/22 09:31:17 jalet117 # Always send some debug info to CUPS' back channel stream (stderr) as118 # informationnal messages.119 #120 # Revision 1.64 2004/06/18 13:34:46 jalet121 # Now all tracebacks include PyKota's version number122 #123 # Revision 1.63 2004/06/17 13:26:50 jalet124 # Better exception handling code125 #126 # Revision 1.62 2004/06/16 20:56:34 jalet127 # Smarter initialisation code128 #129 # Revision 1.61 2004/06/08 09:00:04 jalet130 # Fixed problem when username was passed in uppercase from Samba and we131 # tried to find correct line in CUPS page_log to extract the hostname.132 #133 # Revision 1.60 2004/06/03 23:14:08 jalet134 # 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 jalet140 # Now denies empty jobs141 #142 # Revision 1.58 2004/06/03 21:50:33 jalet143 # 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 jalet148 # I think the bug when cancelling jobs should be fixed right now149 #150 # Revision 1.56 2004/06/02 21:50:56 jalet151 # Moved the sigterm capturing elsewhere152 #153 # Revision 1.55 2004/06/02 14:25:07 jalet154 # Should correctly capture ALL errors now155 #156 # Revision 1.54 2004/05/26 16:44:48 jalet157 # Now logs something when client hostname can't be extracted158 #159 # Revision 1.53 2004/05/26 14:49:35 jalet160 # First try at saving the job-originating-hostname in the database161 #162 # Revision 1.52 2004/05/25 09:15:13 jalet163 # accounter.py : old code deleted164 # the rest : now exports PYKOTAPRECOMPUTEDJOBSIZE and PYKOTAPRECOMPUTEDJOBPRICE165 #166 # Revision 1.51 2004/05/25 08:31:16 jalet167 # Heavy CPU usage seems to be fixed at least !168 #169 # Revision 1.50 2004/05/25 05:17:50 jalet170 # Now precomputes the job's size only if current printer's enforcement171 # is "STRICT"172 #173 # Revision 1.49 2004/05/24 22:45:48 jalet174 # New 'enforcement' directive added175 # Polling loop improvements176 #177 # Revision 1.48 2004/05/24 14:36:24 jalet178 # Revert to old polling loop. Will need optimisations179 #180 # Revision 1.47 2004/05/24 11:59:46 jalet181 # More robust (?) code182 #183 # Revision 1.46 2004/05/21 22:02:51 jalet184 # Preliminary work on pre-accounting185 #186 # Revision 1.45 2004/05/19 07:15:32 jalet187 # Could the 'misterious' bug in my loop be finally fixed ???188 #189 # Revision 1.44 2004/05/18 14:48:47 jalet190 # 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 jalet194 # First try at cupspykota's main loop rewrite195 #196 # Revision 1.42 2004/05/10 11:22:28 jalet197 # Typo198 #199 # Revision 1.41 2004/05/10 10:07:30 jalet200 # Catches OSError while reading201 #202 # Revision 1.40 2004/05/10 09:29:48 jalet203 # Should be more robust if we receive a SIGTERM during an I/O operation204 #205 # Revision 1.39 2004/05/07 14:44:53 jalet206 # Fix for file handles unregistered twice from the polling object207 #208 # Revision 1.38 2004/04/09 22:24:46 jalet209 # Began work on correct handling of child processes when jobs are cancelled by210 # the user. Especially important when an external requester is running for a211 # long time.212 #213 # Revision 1.37 2004/03/18 19:11:25 jalet214 # Fix for raw jobs in cupspykota215 #216 # Revision 1.36 2004/03/18 14:03:18 jalet217 # Added fsync() calls218 #219 # Revision 1.35 2004/03/16 12:05:01 jalet220 # Small fix for new waitprinter.sh : when job was denied, would wait forever221 # for printer being in printing mode.222 #223 # Revision 1.34 2004/03/15 10:47:56 jalet224 # This time the traceback formatting should be correct !225 #226 # Revision 1.33 2004/03/05 12:46:07 jalet227 # Improve tracebacks228 #229 # Revision 1.32 2004/03/05 12:31:35 jalet230 # Now should output full traceback when crashing231 #232 # Revision 1.31 2004/03/01 14:35:56 jalet233 # PYKOTAPHASE wasn't set soon enough at the start of the job234 #235 # Revision 1.30 2004/03/01 14:34:15 jalet236 # PYKOTAPHASE wasn't set at the right time at the end of data transmission237 # to underlying layer (real backend)238 #239 # Revision 1.29 2004/03/01 11:23:25 jalet240 # Pre and Post hooks to external commands are available in the cupspykota241 # backend. Forthe pykota filter they will be implemented real soon now.242 #243 # Revision 1.28 2004/02/26 14:18:07 jalet244 # Should fix the remaining bugs wrt printers groups and users groups.245 #246 # Revision 1.27 2004/02/04 23:41:27 jalet247 # Should fix the incorrect "backend died abnormally" problem.248 #249 # Revision 1.26 2004/01/30 16:35:03 jalet250 # Fixes stupid software accounting bug in CUPS backend251 #252 # Revision 1.25 2004/01/16 17:51:46 jalet253 # Fuck Fuck Fuck !!!254 #255 # Revision 1.24 2004/01/14 15:52:01 jalet256 # Small fix for job cancelling code.257 #258 # Revision 1.23 2004/01/13 10:48:28 jalet259 # Small streams polling loop modification.260 #261 # Revision 1.22 2004/01/12 22:43:40 jalet262 # New formula to compute a job's price263 #264 # Revision 1.21 2004/01/12 18:17:36 jalet265 # Denied jobs weren't stored into the history anymore, this is now fixed.266 #267 # Revision 1.20 2004/01/11 23:22:42 jalet268 # Major code refactoring, it's way cleaner, and now allows automated addition269 # of printers on first print.270 #271 # Revision 1.19 2004/01/08 14:10:32 jalet272 # Copyright year changed.273 #274 # Revision 1.18 2004/01/07 16:16:32 jalet275 # Better debugging information276 #277 # Revision 1.17 2003/12/27 16:49:25 uid67467278 # Should be ok now.279 #280 # Revision 1.17 2003/12/06 08:54:29 jalet281 # Code simplifications.282 # Added many debugging messages.283 #284 # Revision 1.16 2003/11/26 20:43:29 jalet285 # Inadvertantly introduced a bug, which is fixed.286 #287 # Revision 1.15 2003/11/26 19:17:35 jalet288 # Printing on a printer not present in the Quota Storage now results289 # in the job being stopped or cancelled depending on the system.290 #291 # Revision 1.14 2003/11/25 13:25:45 jalet292 # Boolean problem with old Python, replaced with 0293 #294 # Revision 1.13 2003/11/23 19:01:35 jalet295 # Job price added to history296 #297 # Revision 1.12 2003/11/21 14:28:43 jalet298 # More complete job history.299 #300 # Revision 1.11 2003/11/19 23:19:35 jalet301 # Code refactoring work.302 # Explicit redirection to /dev/null has to be set in external policy now, just303 # like in external mailto.304 #305 # Revision 1.10 2003/11/18 17:54:24 jalet306 # SIGTERMs are now transmitted to original backends.307 #308 # Revision 1.9 2003/11/18 14:11:07 jalet309 # Small fix for bizarre urls310 #311 # Revision 1.8 2003/11/15 14:26:44 jalet312 # General improvements to the documentation.313 # Email address changed in sample configuration file, because314 # I receive low quota messages almost every day...315 #316 # Revision 1.7 2003/11/14 22:05:12 jalet317 # 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 jalet321 # We exit the loop too soon.322 #323 # Revision 1.5 2003/11/14 18:31:27 jalet324 # Not perfect, but seems to work with the poll() loop.325 #326 # Revision 1.4 2003/11/14 17:04:15 jalet327 # More (untested) work on the CUPS backend.328 #329 # Revision 1.3 2003/11/12 23:27:44 jalet330 # More work on new backend. This commit may be unstable.331 #332 # Revision 1.2 2003/11/12 09:33:34 jalet333 # New CUPS backend supports device enumeration334 #335 # Revision 1.1 2003/11/08 16:05:31 jalet336 # CUPS backend added for people to experiment.337 #338 24 # 339 25 # -
pykota/trunk/bin/dumpykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.22 2005/01/17 08:44:23 jalet27 # Modified copyright years28 #29 # Revision 1.21 2005/01/08 17:03:06 jalet30 # "--format cups" output more resembling CUPS' page_log.31 # Split into a command line tool and a module, to allow easier coding of32 # a CGI interface.33 #34 # Revision 1.20 2005/01/08 11:25:48 jalet35 # Fixed the time zone field in page_log output to make PrintAnalyzer happy36 #37 # Revision 1.19 2005/01/08 10:52:01 jalet38 # Now dumpykota can dump the history into CUPS' page_log format, allowing the39 # use of tools like PrintAnalyzer or phpPrintAnalyzer along with PyKota40 #41 # Revision 1.18 2005/01/07 12:40:53 jalet42 # Fixed field type's name in XML dumps.43 #44 # Revision 1.17 2004/12/21 15:50:00 jalet45 # The dumpykota command now supports extended filtering capabilities with46 # the PostgreSQL backend. LDAP doesn't yet support such possibilities.47 #48 # Revision 1.16 2004/12/21 14:45:31 jalet49 # Prepared dumpykota to accept the new --filter command line option. Some50 # additionnal work needs to be done in the backends though.51 #52 # Revision 1.15 2004/10/12 15:37:00 jalet53 # Now outputs the name of the offending user if a mere mortal tries to use54 # one of these commands !!!55 #56 # Revision 1.14 2004/10/11 22:53:05 jalet57 # Postponed string interpolation to help message's output method58 #59 # Revision 1.13 2004/10/11 12:49:06 jalet60 # Renders help translatable61 #62 # Revision 1.12 2004/10/07 21:14:28 jalet63 # Hopefully final fix for data encoding to and from the database64 #65 # Revision 1.11 2004/10/07 14:35:40 jalet66 # 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 jalet70 # Minor changes to allow any PyKota administrator to launch enhanced versions71 # of the commands, and not only the root user.72 #73 # Revision 1.9 2004/10/05 20:08:46 jalet74 # Misleading help message. Thx to Johannes Laemmermann.75 #76 # Revision 1.8 2004/10/05 09:59:19 jalet77 # Restore compatibility with Python 2.178 #79 # Revision 1.7 2004/10/04 21:25:29 jalet80 # dumpykota can now output datas in the XML format81 #82 # Revision 1.6 2004/09/15 18:28:41 jalet83 # Updated help for dumpykota84 #85 # Revision 1.5 2004/09/15 07:38:05 jalet86 # Fix for uninitialized variable87 #88 # Revision 1.4 2004/09/15 07:26:19 jalet89 # Data dumps are now ordered by entry creation date if applicable.90 # Now dumpykota exits with a message when there's a broken pipe like91 # in dumpykota --data history | head -392 #93 # Revision 1.3 2004/09/15 06:58:25 jalet94 # User groups membership and printer groups membership can now be dumped too95 #96 # Revision 1.2 2004/09/14 22:29:12 jalet97 # First version of dumpykota. Works fine but only with PostgreSQL backend98 # for now.99 #100 # Revision 1.1 2004/07/01 19:22:37 jalet101 # First draft of dumpykota102 #103 24 # 104 25 # -
pykota/trunk/bin/edpykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.88 2005/02/19 17:47:19 jalet27 # Fixed the --prototype command line option to edpykota28 #29 # Revision 1.87 2005/02/13 22:02:28 jalet30 # Big database structure changes. Upgrade script is now included as well as31 # 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 jalet37 # edpykota's --delete command line tool doesn't use "*" as its default argument38 # anymore when the user doesn't pass any real argument :-)39 #40 # Revision 1.85 2005/01/18 19:47:49 jalet41 # Big bug fix wrt the datelimit attribute42 #43 # Revision 1.84 2005/01/17 08:44:23 jalet44 # Modified copyright years45 #46 # Revision 1.83 2004/12/02 21:24:50 jalet47 # Integrated the patch by Wilson Roberto Afonso and Matt Hyclak to allow48 # edpykota to accept the -U | --used value command line option.49 #50 # Revision 1.82 2004/11/22 21:53:38 jalet51 # Added the reject_unknown directive to pykota.conf to reject user/group52 # creation if user or group is unknown to the system53 #54 # Revision 1.81 2004/10/12 15:37:00 jalet55 # Now outputs the name of the offending user if a mere mortal tries to use56 # one of these commands !!!57 #58 # Revision 1.80 2004/10/11 22:53:05 jalet59 # Postponed string interpolation to help message's output method60 #61 # Revision 1.79 2004/10/11 12:49:06 jalet62 # Renders help translatable63 #64 # Revision 1.78 2004/10/07 14:35:40 jalet65 # 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 jalet69 # Added the --hardreset command line option to edpykota70 #71 # Revision 1.76 2004/07/01 19:56:40 jalet72 # Better dispatching of error messages73 #74 # Revision 1.75 2004/06/18 13:34:47 jalet75 # Now all tracebacks include PyKota's version number76 #77 # Revision 1.74 2004/06/07 18:43:40 jalet78 # Fixed over-verbose exits when displaying help or version number79 #80 # Revision 1.73 2004/06/03 21:50:34 jalet81 # 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 jalet86 # Note about not implemented limitby values87 #88 # Revision 1.71 2004/03/24 15:15:24 jalet89 # Began integration of Henrik Janhagen's work on quota-then-balance90 # and balance-then-quota91 #92 # Revision 1.70 2004/02/27 09:23:21 jalet93 # Minor code reorganisation94 #95 # Revision 1.69 2004/02/19 15:05:56 jalet96 # domain names changed to example.com in the doc, according to RFC260697 #98 # Revision 1.68 2004/01/28 10:05:22 jalet99 # New user/group deletion code100 #101 # Revision 1.67 2004/01/15 11:19:07 jalet102 # Typos in messages wrt gettext.103 #104 # Revision 1.66 2004/01/12 21:54:36 jalet105 # User's email address can now be set at user's creation time.106 #107 # Revision 1.65 2004/01/08 16:24:49 jalet108 # edpykota now supports adding printers to printer groups.109 #110 # Revision 1.64 2004/01/08 14:10:32 jalet111 # Copyright year changed.112 #113 # Revision 1.63 2003/11/24 16:50:58 jalet114 # Old help message deletedd115 #116 # Revision 1.62 2003/11/12 23:28:38 jalet117 # More work on new backend. This commit may be unstable.118 #119 # Revision 1.61 2003/11/12 13:06:35 jalet120 # Bug fix wrt no user/group name command line argument to edpykota121 #122 # Revision 1.60 2003/10/09 21:25:24 jalet123 # Multiple printer names or wildcards can be passed on the command line124 # separated with commas.125 # Beta phase.126 #127 # Revision 1.59 2003/10/07 09:07:27 jalet128 # Character encoding added to please latest version of Python129 #130 # Revision 1.58 2003/10/03 12:27:01 jalet131 # Several optimizations, especially with LDAP backend132 #133 # Revision 1.57 2003/08/20 16:01:19 jalet134 # Comment added.135 #136 # Revision 1.56 2003/07/29 20:55:17 jalet137 # 1.14 is out !138 #139 # Revision 1.55 2003/07/28 09:11:12 jalet140 # PyKota now tries to add its attributes intelligently in existing LDAP141 # directories.142 #143 # Revision 1.54 2003/07/21 06:32:42 jalet144 # Prevents email messages to be sent at modification/creation time for145 # a user/group quota146 #147 # Revision 1.53 2003/07/09 06:03:41 jalet148 # Fixed typo when using edpykota --prototype149 #150 # Revision 1.52 2003/07/07 12:11:13 jalet151 # Small fix152 #153 # Revision 1.51 2003/07/07 11:55:50 jalet154 # Small fix155 #156 # Revision 1.50 2003/07/05 12:33:53 jalet157 # More on previous fix.158 #159 # Revision 1.49 2003/07/05 12:32:07 jalet160 # 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 jalet163 # Should be ready for testing :-)164 #165 # Revision 1.47 2003/06/25 14:10:01 jalet166 # Hey, it may work (edpykota --reset excepted) !167 #168 # Revision 1.46 2003/06/16 11:59:09 jalet169 # More work on LDAP170 #171 # Revision 1.45 2003/06/11 19:32:00 jalet172 # Severe bug wrt account balance setting should be corrected.173 #174 # Revision 1.44 2003/04/29 22:03:38 jalet175 # Better error handling.176 #177 # Revision 1.43 2003/04/23 22:13:56 jalet178 # Preliminary support for LPRng added BUT STILL UNTESTED.179 #180 # Revision 1.42 2003/04/17 13:38:47 jalet181 # Docstring corrected for better manual page182 #183 # Revision 1.41 2003/04/16 12:35:49 jalet184 # Groups quota work now !185 #186 # Revision 1.40 2003/04/16 08:22:09 jalet187 # More strict error detection.188 # Minor code rewrite to avoid some repetitive tests.189 #190 # Revision 1.39 2003/04/16 08:01:53 jalet191 # edpykota --charge command line option works now.192 #193 # Revision 1.38 2003/04/15 22:02:43 jalet194 # More complete docstring195 #196 # Revision 1.37 2003/04/15 21:58:33 jalet197 # edpykota now accepts a --delete option.198 # Preparation to allow edpykota to accept much more command line options199 # (WARNING : docstring is OK, but code isn't !)200 #201 # Revision 1.36 2003/04/15 13:55:28 jalet202 # Options --limitby and --balance added to edpykota203 #204 # Revision 1.35 2003/04/15 13:06:39 jalet205 # Allow to add a printer without any user206 #207 # Revision 1.34 2003/04/11 16:51:11 jalet208 # 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 jalet211 # Job history added. Upgrade script neutralized for now !212 #213 # Revision 1.32 2003/04/08 21:31:39 jalet214 # (anything or 0) = anything !!! Go back to school Jerome !215 #216 # Revision 1.31 2003/04/08 21:13:44 jalet217 # Prepare --groups option to work.218 #219 # Revision 1.30 2003/04/08 21:10:18 jalet220 # Checks --groups option presence instead of --users because --users is the default.221 #222 # Revision 1.29 2003/04/05 09:28:56 jalet223 # Unnecessary message was logged224 #225 # Revision 1.28 2003/03/29 13:45:26 jalet226 # 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 jalet231 # Bad english232 #233 # Revision 1.26 2003/03/10 00:11:27 jalet234 # Cleaner example.235 #236 # Revision 1.25 2003/03/09 23:56:21 jalet237 # Option noquota added to do accounting only.238 #239 # Revision 1.24 2003/02/27 23:48:41 jalet240 # Correctly maps PyKota's log levels to syslog log levels241 #242 # Revision 1.23 2003/02/27 22:55:20 jalet243 # WARN log priority doesn't exist.244 #245 # Revision 1.22 2003/02/27 09:37:02 jalet246 # Wildcards seem to work now247 #248 # Revision 1.21 2003/02/27 09:04:46 jalet249 # user and group names can be passed as wildcards if the --add option250 # is not set. The default is to act on all users or groups.251 #252 # Revision 1.20 2003/02/10 12:07:30 jalet253 # Now repykota should output the recorded total page number for each printer too.254 #255 # Revision 1.19 2003/02/09 13:40:29 jalet256 # typo257 #258 # Revision 1.18 2003/02/09 12:56:53 jalet259 # Internationalization begins...260 #261 # Revision 1.17 2003/02/08 22:47:23 jalet262 # Option --reset can now be used without having to use soft and hard limits263 # on the command line.264 #265 # Revision 1.16 2003/02/08 22:39:46 jalet266 # --reset command line option added267 #268 # Revision 1.15 2003/02/08 22:20:01 jalet269 # Clarification on why we don't check with /etc/passwd to see if the user270 # name is valid or not.271 #272 # Revision 1.14 2003/02/08 22:18:15 jalet273 # Now checks user and group names for validity before adding them274 #275 # Revision 1.13 2003/02/08 22:09:02 jalet276 # Only printer was added the first time.277 #278 # Revision 1.12 2003/02/08 21:44:49 jalet279 # Python 2.1 string module doesn't define ascii_letters280 #281 # Revision 1.11 2003/02/08 09:42:44 jalet282 # Better handle wrong or bad command line arguments283 #284 # Revision 1.10 2003/02/08 09:39:20 jalet285 # typos286 #287 # Revision 1.9 2003/02/08 09:38:06 jalet288 # Badly placed test289 #290 # Revision 1.8 2003/02/07 22:53:57 jalet291 # Checks if printer name is valid before adding it292 #293 # Revision 1.7 2003/02/07 22:17:58 jalet294 # Incomplete test295 #296 # Revision 1.6 2003/02/07 22:13:13 jalet297 # Perhaps edpykota is now able to add printers !!! Oh, stupid me !298 #299 # Revision 1.5 2003/02/06 14:49:04 jalet300 # edpykota should be ok now301 #302 # Revision 1.4 2003/02/06 14:28:59 jalet303 # edpykota should be ok, minus some typos304 #305 # Revision 1.3 2003/02/06 10:47:21 jalet306 # Documentation string and command line options didn't match.307 #308 # Revision 1.2 2003/02/06 10:39:23 jalet309 # Preliminary edpykota work.310 #311 # Revision 1.1 2003/02/05 21:41:09 jalet312 # Skeletons added for all command line tools313 #314 24 # 315 25 # -
pykota/trunk/bin/lprngpykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.18 2005/03/02 17:00:03 jalet27 # Fixed a bad copy&paste28 #29 # Revision 1.17 2005/02/16 00:29:33 jalet30 # 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 jalet35 # Introduces the new 'trustjobsize' directive to workaround some printers36 # generating unstable internal page counter values when queried through SNMP.37 #38 # Revision 1.15 2005/02/14 22:53:44 jalet39 # Now always precomputes the job's size with the internal PDL parser, and not40 # only when 'enforcement: strict' was set in pykota.conf41 #42 # Revision 1.14 2005/02/13 22:48:37 jalet43 # Added the md5sum to the history44 #45 # Revision 1.13 2005/01/17 08:44:23 jalet46 # Modified copyright years47 #48 # Revision 1.12 2004/10/25 17:05:36 jalet49 # 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 jalet52 # Fixed typo in code added to debug LPRng problem53 #54 # Revision 1.10 2004/10/24 09:06:46 jalet55 # Added debug messages for LPRng support possible problem ???56 #57 # Revision 1.9 2004/10/19 21:37:57 jalet58 # Fixes recently introduced bug59 #60 # Revision 1.8 2004/10/13 20:51:27 jalet61 # Made debugging levels be the same in cupspykota and lprngpykota.62 # Now outputs more information in informational messages : user, printer, jobid63 #64 # Revision 1.7 2004/09/13 16:02:44 jalet65 # Added fix for incorrect job's size when hardware accounting fails66 #67 # Revision 1.6 2004/09/02 14:40:13 jalet68 # Another bunch of LPRng fixes69 #70 # Revision 1.5 2004/07/23 11:19:48 jalet71 # 1.19beta is out !72 #73 # Revision 1.4 2004/07/22 22:41:48 jalet74 # Hardware accounting for LPRng should be OK now. UNTESTED.75 #76 # Revision 1.3 2004/07/21 09:35:48 jalet77 # Software accounting seems to be OK with LPRng support now78 #79 # Revision 1.2 2004/07/20 22:47:38 jalet80 # Sanitizing81 #82 # Revision 1.1 2004/07/17 20:37:27 jalet83 # Missing file... Am I really stupid ?84 #85 24 # 86 25 # -
pykota/trunk/bin/pkbanner
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.12 2005/01/17 08:44:23 jalet27 # Modified copyright years28 #29 # Revision 1.11 2004/12/03 12:34:28 jalet30 # Fixed the default value for the --savetoner command line option31 #32 # Revision 1.10 2004/11/17 13:28:19 jalet33 # Fixed some typo in the help34 #35 # Revision 1.9 2004/11/17 13:24:05 jalet36 # Improved pkbanner's help37 #38 # Revision 1.8 2004/11/17 13:12:04 jalet39 # Implemented the --savetoner command line option40 #41 # Revision 1.7 2004/11/15 22:29:01 jalet42 # Moved title and filename to the left to free some space.43 #44 # Revision 1.6 2004/11/15 22:20:27 jalet45 # Now outputs strings as-is, and not title-ized46 #47 # Revision 1.5 2004/11/15 22:01:34 jalet48 # Improved banner handling.49 # Fix for raw printing and banners.50 #51 # Revision 1.4 2004/11/15 19:59:34 jalet52 # PyKota banners now basically work !53 #54 # Revision 1.3 2004/11/12 23:46:44 jalet55 # Heavy work on pkbanner. Not finished yet though, but mostly works.56 #57 # Revision 1.2 2004/11/11 14:25:48 jalet58 # Added some TODO comments59 #60 # Revision 1.1 2004/11/10 22:48:47 jalet61 # Banner generator's skeleton added62 #63 24 # 64 25 # -
pykota/trunk/bin/pkhint
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.23 2005/02/22 17:18:18 jalet27 # Simplified pkhint's output to take care of the software() accounter28 # optimization and of the internal PJL accounter.29 #30 # Revision 1.22 2005/01/17 08:44:23 jalet31 # Modified copyright years32 #33 # Revision 1.21 2004/10/13 08:26:06 jalet34 # 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 example36 #37 # Revision 1.20 2004/10/13 08:09:19 jalet38 # 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 jalet42 # Postponed string interpolation to help message's output method43 #44 # Revision 1.18 2004/10/11 12:49:06 jalet45 # Renders help translatable46 #47 # Revision 1.17 2004/09/23 19:29:36 jalet48 # If SNMP accounting is possible, pkhint now suggests to use the internal49 # 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 jalet53 # Small fix for %(port)s thanks to rpinheiro54 #55 # Revision 1.15 2004/07/20 22:19:45 jalet56 # Sanitized a bit + use of gettext57 #58 # Revision 1.14 2004/07/01 19:56:40 jalet59 # Better dispatching of error messages60 #61 # Revision 1.13 2004/06/29 07:55:18 jalet62 # Doesn't output the warning message when --help or --version is asked63 #64 # Revision 1.12 2004/06/29 07:53:11 jalet65 # Improved pkhint66 #67 # Revision 1.11 2004/06/18 13:34:48 jalet68 # Now all tracebacks include PyKota's version number69 #70 # Revision 1.10 2004/06/07 18:43:40 jalet71 # Fixed over-verbose exits when displaying help or version number72 #73 # Revision 1.9 2004/06/03 21:50:34 jalet74 # 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 jalet79 # 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 jalet83 # Code simplifications84 #85 # Revision 1.6 2004/03/30 12:59:47 jalet86 # Fixed path problem87 #88 # Revision 1.5 2004/02/09 13:07:06 jalet89 # Should now be able to handle network + pjl printers90 #91 # Revision 1.4 2004/02/09 12:35:19 jalet92 # 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 jalet96 # Help97 #98 # Revision 1.2 2004/02/07 13:47:55 jalet99 # More warnings100 #101 # Revision 1.1 2004/02/07 13:45:51 jalet102 # Preliminary work on the pkhint command103 #104 24 # 105 25 # -
pykota/trunk/bin/pkmail
r2146 r2147 23 23 # $Id$ 24 24 # 25 # $Log$26 # Revision 1.4 2005/02/22 17:36:58 jalet27 # Fixed the command's help28 #29 # Revision 1.3 2005/01/17 08:44:24 jalet30 # Modified copyright years31 #32 # Revision 1.2 2004/11/21 22:16:11 jalet33 # Added some kind of protection against bad guys34 #35 # Revision 1.1 2004/11/21 21:50:03 jalet36 # Introduced the new pkmail command as a simple email gateway37 25 # 38 26 -
pykota/trunk/bin/pkpgcounter
r2146 r2147 23 23 # $Id$ 24 24 # 25 # $Log$26 # Revision 1.12 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.11 2004/05/21 20:40:07 jalet30 # All the code for pkpgcounter is now in pdlanalyzer.py31 #32 # Revision 1.10 2004/05/18 09:59:54 jalet33 # pkpgcounter is now just a wrapper around the PDLAnalyzer class34 #35 # Revision 1.9 2004/05/10 07:23:21 jalet36 # pykotme now uses pkpgcounter to compute the job's size.37 #38 # Revision 1.8 2004/05/08 15:12:23 jalet39 # Improved PCL6 support40 #41 # Revision 1.7 2004/05/07 23:08:21 jalet42 # Skeleton for PCLXL aka PCL643 # Added the "potential" fix for rastertoprinter's output44 #45 # Revision 1.6 2004/05/06 21:19:27 jalet46 # Doesn't exit anymore on the first nul byte47 #48 # Revision 1.5 2004/05/06 12:37:29 jalet49 # pkpgcounter : comments50 # pkprinters : when --add is used, existing printers are now skipped.51 #52 # Revision 1.4 2004/05/04 12:21:55 jalet53 # Now uses mmap in PCL mode54 #55 # Revision 1.3 2004/05/04 04:39:26 jalet56 # Better PCL support57 #58 # Revision 1.2 2004/05/04 03:14:26 jalet59 # fixed copy&paste problem in pkpgcounter60 #61 # Revision 1.1 2004/04/08 17:07:42 jalet62 # pkpgcounter added63 #64 25 # 65 26 -
pykota/trunk/bin/pkprinters
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.19 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.18 2004/10/20 12:32:51 jalet30 # Fixed typo in help31 #32 # Revision 1.17 2004/10/13 21:40:10 jalet33 # Now mandates that the user be a PyKota administrator to allow dangerous34 # command line options. --list is still allowed to mere mortals though.35 #36 # Revision 1.16 2004/10/11 22:53:05 jalet37 # Postponed string interpolation to help message's output method38 #39 # Revision 1.15 2004/10/11 12:49:06 jalet40 # Renders help translatable41 #42 # Revision 1.14 2004/07/19 22:37:13 jalet43 # pykosd is now a very good tool44 #45 # Revision 1.13 2004/07/01 19:56:41 jalet46 # Better dispatching of error messages47 #48 # Revision 1.12 2004/07/01 17:45:47 jalet49 # Added code to handle the description field for printers50 #51 # Revision 1.11 2004/06/18 13:34:48 jalet52 # Now all tracebacks include PyKota's version number53 #54 # Revision 1.10 2004/06/07 18:43:40 jalet55 # Fixed over-verbose exits when displaying help or version number56 #57 # Revision 1.9 2004/06/03 21:50:34 jalet58 # 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 jalet63 # Added --skipexisting command line option to pkprinters64 #65 # Revision 1.7 2004/05/06 12:51:58 jalet66 # Documentation67 #68 # Revision 1.6 2004/05/06 12:37:29 jalet69 # pkpgcounter : comments70 # pkprinters : when --add is used, existing printers are now skipped.71 #72 # Revision 1.5 2004/04/16 16:52:09 jalet73 # Better formatting74 #75 # Revision 1.4 2004/04/16 16:47:57 jalet76 # pkprinters now accept the --list command line option77 #78 # Revision 1.3 2004/02/04 13:24:41 jalet79 # pkprinters can now remove printers from printers groups.80 #81 # Revision 1.2 2004/02/04 12:52:37 jalet82 # pkprinters' help83 #84 # Revision 1.1 2004/02/04 11:16:59 jalet85 # pkprinters command line tool added.86 #87 24 # 88 25 # -
pykota/trunk/bin/pykosd
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.12 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.11 2004/10/17 19:41:54 jalet30 # Fixed help message which displayed "pkprinters" instead of "pykosd"31 #32 # Revision 1.10 2004/10/11 22:53:05 jalet33 # Postponed string interpolation to help message's output method34 #35 # Revision 1.9 2004/10/11 12:49:06 jalet36 # Renders help translatable37 #38 # Revision 1.8 2004/10/06 10:05:47 jalet39 # Minor changes to allow any PyKota administrator to launch enhanced versions40 # of the commands, and not only the root user.41 #42 # Revision 1.7 2004/07/20 22:42:26 jalet43 # pykosd now supports setting color44 #45 # Revision 1.6 2004/07/20 22:29:49 jalet46 # pykosd now supports setting the font47 #48 # Revision 1.5 2004/07/20 22:19:45 jalet49 # Sanitized a bit + use of gettext50 #51 # Revision 1.4 2004/07/19 22:37:13 jalet52 # pykosd is now a very good tool53 #54 # Revision 1.3 2004/07/07 21:44:15 jalet55 # Formatting improvements56 #57 # Revision 1.2 2004/07/07 14:14:31 jalet58 # Now handles limits by quota in addition to limits by balance59 #60 # Revision 1.1 2004/07/07 13:21:27 jalet61 # Introduction of the pykosd command62 #63 24 # 64 25 # -
pykota/trunk/bin/pykotme
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.18 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.17 2004/11/12 23:46:44 jalet30 # Heavy work on pkbanner. Not finished yet though, but mostly works.31 #32 # Revision 1.16 2004/10/11 22:53:05 jalet33 # Postponed string interpolation to help message's output method34 #35 # Revision 1.15 2004/10/11 12:49:06 jalet36 # Renders help translatable37 #38 # Revision 1.14 2004/10/06 10:05:47 jalet39 # Minor changes to allow any PyKota administrator to launch enhanced versions40 # of the commands, and not only the root user.41 #42 # Revision 1.13 2004/07/01 19:56:42 jalet43 # Better dispatching of error messages44 #45 # Revision 1.12 2004/06/18 13:34:49 jalet46 # Now all tracebacks include PyKota's version number47 #48 # Revision 1.11 2004/06/07 18:43:40 jalet49 # Fixed over-verbose exits when displaying help or version number50 #51 # Revision 1.10 2004/06/03 21:50:34 jalet52 # 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 jalet57 # Now pykotme doesn't spawn a new process anymore to compute job's size, but58 # use the PDLAnalyzer class directly59 #60 # Revision 1.8 2004/05/10 07:23:21 jalet61 # pykotme now uses pkpgcounter to compute the job's size.62 #63 # Revision 1.7 2004/01/12 22:43:40 jalet64 # New formula to compute a job's price65 #66 # Revision 1.6 2004/01/08 14:10:32 jalet67 # Copyright year changed.68 #69 # Revision 1.5 2003/10/09 21:25:25 jalet70 # Multiple printer names or wildcards can be passed on the command line71 # separated with commas.72 # Beta phase.73 #74 # Revision 1.4 2003/10/07 09:07:27 jalet75 # Character encoding added to please latest version of Python76 #77 # Revision 1.3 2003/07/29 20:55:17 jalet78 # 1.14 is out !79 #80 # Revision 1.2 2003/07/25 10:41:29 jalet81 # 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 jalet86 # Now includes the pykotme utility87 #88 24 # 89 25 # -
pykota/trunk/bin/repykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.53 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.52 2004/10/11 22:53:05 jalet30 # Postponed string interpolation to help message's output method31 #32 # Revision 1.51 2004/10/11 12:49:06 jalet33 # Renders help translatable34 #35 # Revision 1.50 2004/10/06 10:05:47 jalet36 # Minor changes to allow any PyKota administrator to launch enhanced versions37 # of the commands, and not only the root user.38 #39 # Revision 1.49 2004/06/18 13:34:49 jalet40 # Now all tracebacks include PyKota's version number41 #42 # Revision 1.48 2004/06/07 18:43:41 jalet43 # Fixed over-verbose exits when displaying help or version number44 #45 # Revision 1.47 2004/06/03 21:50:34 jalet46 # 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 jalet51 # Copyright year changed.52 #53 # Revision 1.45 2003/10/09 21:25:25 jalet54 # Multiple printer names or wildcards can be passed on the command line55 # separated with commas.56 # Beta phase.57 #58 # Revision 1.44 2003/10/07 09:07:27 jalet59 # Character encoding added to please latest version of Python60 #61 # Revision 1.43 2003/08/18 16:35:28 jalet62 # New pychecker pass, on the tools this time.63 #64 # Revision 1.42 2003/07/29 20:55:17 jalet65 # 1.14 is out !66 #67 # Revision 1.41 2003/07/07 12:19:52 jalet68 # Now repykota and warnpykota --groups check the groups the user is a member of69 # in the print quota database, not in the system passwd/group files70 #71 # Revision 1.40 2003/06/30 12:46:15 jalet72 # Extracted reporting code.73 #74 # Revision 1.39 2003/06/25 14:10:01 jalet75 # Hey, it may work (edpykota --reset excepted) !76 #77 # Revision 1.38 2003/06/15 22:26:52 jalet78 # More work on LDAP79 #80 # Revision 1.37 2003/06/10 16:37:54 jalet81 # Deletion of the second user which is not needed anymore.82 # Added a debug configuration field in /etc/pykota.conf83 # All queries can now be sent to the logger in debug mode, this will84 # greatly help improve performance when time for this will come.85 #86 # Revision 1.36 2003/06/06 14:21:08 jalet87 # New LDAP schema.88 # Small bug fixes.89 #90 # Revision 1.35 2003/05/28 13:56:24 jalet91 # Unneeded code.92 #93 # Revision 1.34 2003/04/29 22:03:38 jalet94 # Better error handling.95 #96 # Revision 1.33 2003/04/28 08:25:48 jalet97 # Small display bug in repykota was fixed.98 #99 # Revision 1.32 2003/04/23 22:13:56 jalet100 # Preliminary support for LPRng added BUT STILL UNTESTED.101 #102 # Revision 1.31 2003/04/23 09:58:17 jalet103 # Prices per page/job are now displayed104 #105 # Revision 1.30 2003/04/18 08:34:51 jalet106 # Minor fix.107 #108 # Revision 1.29 2003/04/18 08:29:30 jalet109 # Minor bug fix110 #111 # Revision 1.28 2003/04/17 09:36:30 jalet112 # Bad alignment in output113 #114 # Revision 1.27 2003/04/17 09:26:21 jalet115 # repykota now reports account balances too.116 #117 # Revision 1.26 2003/04/16 12:35:49 jalet118 # Groups quota work now !119 #120 # Revision 1.25 2003/04/15 11:30:57 jalet121 # 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 jalet126 # Reversed test.127 #128 # Revision 1.23 2003/04/11 14:42:54 jalet129 # Translations130 #131 # Revision 1.21 2003/04/10 21:47:20 jalet132 # Job history added. Upgrade script neutralized for now !133 #134 # Revision 1.20 2003/04/08 21:31:39 jalet135 # (anything or 0) = anything !!! Go back to school Jerome !136 #137 # Revision 1.19 2003/04/08 21:13:44 jalet138 # Prepare --groups option to work.139 #140 # Revision 1.18 2003/04/08 21:10:18 jalet141 # Checks --groups option presence instead of --users because --users is the default.142 #143 # Revision 1.17 2003/03/29 13:45:27 jalet144 # 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 jalet149 # Option noquota added to do accounting only.150 #151 # Revision 1.15 2003/03/09 23:39:14 jalet152 # Simplified translations.153 #154 # Revision 1.14 2003/02/27 09:04:02 jalet155 # Missing translation156 #157 # Revision 1.13 2003/02/27 08:44:01 jalet158 # 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 jalet163 # getGraceDelay for printer164 #165 # Revision 1.11 2003/02/10 12:12:34 jalet166 # Translations.167 #168 # Revision 1.10 2003/02/10 12:07:30 jalet169 # Now repykota should output the recorded total page number for each printer too.170 #171 # Revision 1.9 2003/02/09 13:40:29 jalet172 # typo173 #174 # Revision 1.8 2003/02/09 12:56:53 jalet175 # Internationalization begins...176 #177 # Revision 1.7 2003/02/08 23:17:20 jalet178 # repykota now outputs life time page counters and the total pages printed by179 # all users/groups on each printer.180 #181 # Revision 1.6 2003/02/07 23:39:16 jalet182 # Typos183 #184 # Revision 1.5 2003/02/07 08:38:36 jalet185 # Missing conversion.186 # empty line between two printers187 #188 # Revision 1.4 2003/02/07 08:34:15 jalet189 # Test wrt date limit was wrong190 #191 # Revision 1.3 2003/02/07 00:08:52 jalet192 # Typos193 #194 # Revision 1.2 2003/02/06 23:58:05 jalet195 # repykota should be ok196 #197 24 # 198 25 # -
pykota/trunk/bin/warnpykota
r2146 r2147 22 22 # 23 23 # $Id$ 24 #25 # $Log$26 # Revision 1.37 2005/01/17 08:44:24 jalet27 # Modified copyright years28 #29 # Revision 1.36 2004/10/12 17:08:32 jalet30 # alreadydone mapping was reset in each iteration, this is fixed.31 #32 # Revision 1.35 2004/10/12 09:14:03 jalet33 # Ensures that warnpykota still test other quota entries for each user if34 # he has not been warned, even if limited by his account balance.35 #36 # Revision 1.34 2004/10/12 09:09:04 jalet37 # Now warnpykota warns users limited by balance only once per launch.38 #39 # Revision 1.33 2004/10/12 08:58:53 jalet40 # Now warnpykota only warns users who have already printed, to not confuse41 # users who have just opened their account.42 #43 # Revision 1.32 2004/10/11 22:53:05 jalet44 # Postponed string interpolation to help message's output method45 #46 # Revision 1.31 2004/10/11 12:49:06 jalet47 # Renders help translatable48 #49 # Revision 1.30 2004/10/06 10:05:47 jalet50 # Minor changes to allow any PyKota administrator to launch enhanced versions51 # of the commands, and not only the root user.52 #53 # Revision 1.29 2004/06/18 13:34:49 jalet54 # Now all tracebacks include PyKota's version number55 #56 # Revision 1.28 2004/06/07 18:43:41 jalet57 # Fixed over-verbose exits when displaying help or version number58 #59 # Revision 1.27 2004/06/03 21:50:34 jalet60 # 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 jalet65 # Copyright year changed.66 #67 # Revision 1.25 2003/10/09 21:25:26 jalet68 # Multiple printer names or wildcards can be passed on the command line69 # separated with commas.70 # Beta phase.71 #72 # Revision 1.24 2003/10/07 09:07:28 jalet73 # Character encoding added to please latest version of Python74 #75 # Revision 1.23 2003/08/18 16:35:28 jalet76 # New pychecker pass, on the tools this time.77 #78 # Revision 1.22 2003/07/29 20:55:17 jalet79 # 1.14 is out !80 #81 # Revision 1.21 2003/07/07 12:19:52 jalet82 # Now repykota and warnpykota --groups check the groups the user is a member of83 # in the print quota database, not in the system passwd/group files84 #85 # Revision 1.20 2003/06/25 14:10:01 jalet86 # Hey, it may work (edpykota --reset excepted) !87 #88 # Revision 1.19 2003/04/29 22:03:38 jalet89 # Better error handling.90 #91 # Revision 1.18 2003/04/23 22:13:56 jalet92 # Preliminary support for LPRng added BUT STILL UNTESTED.93 #94 # Revision 1.17 2003/04/17 13:32:17 jalet95 # bad documentation string96 #97 # Revision 1.16 2003/04/16 12:35:49 jalet98 # Groups quota work now !99 #100 # Revision 1.15 2003/04/10 21:47:20 jalet101 # Job history added. Upgrade script neutralized for now !102 #103 # Revision 1.14 2003/04/08 21:31:39 jalet104 # (anything or 0) = anything !!! Go back to school Jerome !105 #106 # Revision 1.13 2003/04/08 21:13:44 jalet107 # Prepare --groups option to work.108 #109 # Revision 1.12 2003/04/08 21:10:18 jalet110 # Checks --groups option presence instead of --users because --users is the default.111 #112 # Revision 1.11 2003/03/29 13:45:27 jalet113 # 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 jalet118 # Clearer help.119 #120 # Revision 1.9 2003/03/09 23:39:14 jalet121 # Simplified translations.122 #123 # Revision 1.8 2003/02/10 12:07:30 jalet124 # Now repykota should output the recorded total page number for each printer too.125 #126 # Revision 1.7 2003/02/09 13:40:29 jalet127 # typo128 #129 # Revision 1.6 2003/02/09 12:56:53 jalet130 # Internationalization begins...131 #132 # Revision 1.5 2003/02/07 23:24:38 jalet133 # Empty line deleted134 #135 # Revision 1.4 2003/02/06 23:25:40 jalet136 # Cleaner docstring137 #138 # Revision 1.3 2003/02/06 23:20:02 jalet139 # warnpykota doesn't need any user/group name argument, mimicing the140 # warnquota disk quota tool.141 #142 # Revision 1.2 2003/02/06 22:54:33 jalet143 # warnpykota should be ok144 #145 24 # 146 25 #