Changeset 2344 for pykota/trunk/bin

Show
Ignore:
Timestamp:
07/08/05 18:52:50 (19 years ago)
Author:
jerome
Message:

Moved the GPL blurb into a single location.
Now uses named parameters in commands' help.

Location:
pykota/trunk/bin
Files:
12 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r2303 r2344  
    3030from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    3131 
    32 __doc__ = N_("""autopykota v%s (c) %s %s 
     32__doc__ = N_("""autopykota v%(__version__)s (c) %(__years__)s %(__author__)s 
    3333 
    3434A tool to automate user account creation and initial balance setting. 
     
    5151                       If the user already exists, actual balance is left 
    5252                       unmodified. If unset, the default value is 0. 
    53                         
    54 This program is free software; you can redistribute it and/or modify 
    55 it under the terms of the GNU General Public License as published by 
    56 the Free Software Foundation; either version 2 of the License, or 
    57 (at your option) any later version. 
    58  
    59 This program is distributed in the hope that it will be useful, 
    60 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    61 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    62 GNU General Public License for more details. 
    63  
    64 You should have received a copy of the GNU General Public License 
    65 along with this program; if not, write to the Free Software 
    66 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    67  
    68 Please e-mail bugs to: %s""") 
     53""") 
    6954 
    7055class AutoPyKota(PyKotaTool) : 
  • pykota/trunk/bin/dumpykota

    r2342 r2344  
    3232from pykota.dumper import DumPyKota 
    3333 
    34 __doc__ = N_("""dumpykota v%s (c) %s %s 
     34__doc__ = N_("""dumpykota v%(__version__)s (c) %(__years__)s %(__author__)s 
    3535 
    3636Dumps PyKota database's content. 
     
    122122  Dumps all jobs printed between March 1st 2005 at midnight and 
    123123  July 30th 2005 at 23 hours 46 minutes and 15 secondes included. 
    124    
    125 This program is free software; you can redistribute it and/or modify 
    126 it under the terms of the GNU General Public License as published by 
    127 the Free Software Foundation; either version 2 of the License, or 
    128 (at your option) any later version. 
    129  
    130 This program is distributed in the hope that it will be useful, 
    131 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    132 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    133 GNU General Public License for more details. 
    134  
    135 You should have received a copy of the GNU General Public License 
    136 along with this program; if not, write to the Free Software 
    137 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    138  
    139 Please e-mail bugs to: %s""") 
     124""") 
    140125         
    141126if __name__ == "__main__" :  
  • pykota/trunk/bin/edpykota

    r2324 r2344  
    3333from pykota.storage import PyKotaStorageError 
    3434 
    35 __doc__ = N_("""edpykota v%s (c) %s %s 
     35__doc__ = N_("""edpykota v%(__version__)s (c) %(__years__)s %(__author__)s 
    3636 
    3737A Print Quota editor for PyKota. 
     
    225225  cost of each print job will be multiplied by zero before charging 
    226226  his account. 
    227  
    228 This program is free software; you can redistribute it and/or modify 
    229 it under the terms of the GNU General Public License as published by 
    230 the Free Software Foundation; either version 2 of the License, or 
    231 (at your option) any later version. 
    232  
    233 This program is distributed in the hope that it will be useful, 
    234 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    235 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    236 GNU General Public License for more details. 
    237  
    238 You should have received a copy of the GNU General Public License 
    239 along with this program; if not, write to the Free Software 
    240 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    241  
    242 Please e-mail bugs to: %s""")  
     227""")  
    243228         
    244229class EdPyKota(PyKotaTool) :         
  • pykota/trunk/bin/pkbanner

    r2303 r2344  
    4949from pykota.tool import Tool, PyKotaToolError, crashed, N_ 
    5050 
    51 __doc__ = N_("""pkbanner v%s (c) %s %s 
     51__doc__ = N_("""pkbanner v%(__version__)s (c) %(__years__)s %(__author__)s 
    5252 
    5353Generates banners. 
     
    9393  You'll find more examples in the sample configuration file included     
    9494  in PyKota. 
    95        
    96 This program is free software; you can redistribute it and/or modify 
    97 it under the terms of the GNU General Public License as published by 
    98 the Free Software Foundation; either version 2 of the License, or 
    99 (at your option) any later version. 
    100  
    101 This program is distributed in the hope that it will be useful, 
    102 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    103 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    104 GNU General Public License for more details. 
    105  
    106 You should have received a copy of the GNU General Public License 
    107 along with this program; if not, write to the Free Software 
    108 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    109  
    110 Please e-mail bugs to: %s""") 
     95""") 
    11196         
    11297class PyKotaBanner(Tool) :         
  • pykota/trunk/bin/pkbcodes

    r2342 r2344  
    3131from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    3232 
    33 __doc__ = N_("""pkbcodes v%s (c) %s %s 
     33__doc__ = N_("""pkbcodes v%(__version__)s (c) %(__years__)s %(__author__)s 
    3434 
    3535A billing codes Manager for PyKota. 
     
    7979  $ pkbcodes --list "my*" 
    8080   
    81   This will list all billing codes which name begins with "my".  
    82    
    83 This program is free software; you can redistribute it and/or modify 
    84 it under the terms of the GNU General Public License as published by 
    85 the Free Software Foundation; either version 2 of the License, or 
    86 (at your option) any later version. 
    87  
    88 This program is distributed in the hope that it will be useful, 
    89 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    90 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    91 GNU General Public License for more details. 
    92  
    93 You should have received a copy of the GNU General Public License 
    94 along with this program; if not, write to the Free Software 
    95 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    96  
    97 Please e-mail bugs to: %s""") 
     81  This will list all billing codes which name begins with 'my'. 
     82""") 
    9883         
    9984class PKBcodes(PyKotaTool) :         
  • pykota/trunk/bin/pkhint

    r2303 r2344  
    3636    hasSNMP = 1 
    3737 
    38 __doc__ = N_("""pkhint v%s (c) %s %s 
     38__doc__ = N_("""pkhint v%(__version__)s (c) %(__years__)s %(__author__)s 
    3939 
    4040A tool to give hints on what accounting method is best for each printer. 
     
    5959  If you don't pass any argument on the command line, all 
    6060  printers will be analyzed. 
    61    
    62 This program is free software; you can redistribute it and/or modify 
    63 it under the terms of the GNU General Public License as published by 
    64 the Free Software Foundation; either version 2 of the License, or 
    65 (at your option) any later version. 
    66  
    67 This program is distributed in the hope that it will be useful, 
    68 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    69 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    70 GNU General Public License for more details. 
    71  
    72 You should have received a copy of the GNU General Public License 
    73 along with this program; if not, write to the Free Software 
    74 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    75  
    76 Please e-mail bugs to: %s""") 
     61""") 
    7762         
    7863SNMPTESTS = [ \ 
  • pykota/trunk/bin/pkmail

    r2303 r2344  
    3434from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError 
    3535 
    36 __doc__ = N_("""pkmail v%s (c) %s %s 
     36__doc__ = N_("""pkmail v%(__version__)s (c) %(__years__)s %(__author__)s 
    3737 
    3838Email gateway for PyKota. 
     
    7373   
    7474  Use at your own risk ! 
    75    
    76 This program is free software; you can redistribute it and/or modify 
    77 it under the terms of the GNU General Public License as published by 
    78 the Free Software Foundation; either version 2 of the License, or 
    79 (at your option) any later version. 
    80  
    81 This program is distributed in the hope that it will be useful, 
    82 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    83 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    84 GNU General Public License for more details. 
    85  
    86 You should have received a copy of the GNU General Public License 
    87 along with this program; if not, write to the Free Software 
    88 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    89  
    90 Please e-mail bugs to: %s""") 
     75""") 
    9176         
    9277         
  • pykota/trunk/bin/pkprinters

    r2336 r2344  
    3131from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    3232 
    33 __doc__ = N_("""pkprinters v%s (c) %s %s 
     33__doc__ = N_("""pkprinters v%(__version__)s (c) %(__years__)s %(__author__)s 
    3434 
    3535A Printers Manager for PyKota. 
     
    109109   
    110110  This will remove the hp2200 printer from the LexMark printer group. 
    111    
    112 This program is free software; you can redistribute it and/or modify 
    113 it under the terms of the GNU General Public License as published by 
    114 the Free Software Foundation; either version 2 of the License, or 
    115 (at your option) any later version. 
    116  
    117 This program is distributed in the hope that it will be useful, 
    118 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    119 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    120 GNU General Public License for more details. 
    121  
    122 You should have received a copy of the GNU General Public License 
    123 along with this program; if not, write to the Free Software 
    124 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    125  
    126 Please e-mail bugs to: %s""") 
     111""") 
    127112         
    128113class PKPrinters(PyKotaTool) :         
  • pykota/trunk/bin/pykosd

    r2303 r2344  
    3838from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    3939 
    40 __doc__ = N_("""pykosd v%s (c) %s %s 
     40__doc__ = N_("""pykosd v%(__version__)s (c) %(__years__)s %(__author__)s 
    4141 
    4242An OSD quota monitor for PyKota. 
     
    7575  and will last for 3 seconds (the default) each time. After five 
    7676  iterations, the program will exit. 
    77    
    78 This program is free software; you can redistribute it and/or modify 
    79 it under the terms of the GNU General Public License as published by 
    80 the Free Software Foundation; either version 2 of the License, or 
    81 (at your option) any later version. 
    82  
    83 This program is distributed in the hope that it will be useful, 
    84 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    85 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    86 GNU General Public License for more details. 
    87  
    88 You should have received a copy of the GNU General Public License 
    89 along with this program; if not, write to the Free Software 
    90 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    91  
    92 Please e-mail bugs to: %s""") 
     77""") 
    9378 
    9479 
  • pykota/trunk/bin/pykotme

    r2303 r2344  
    3232from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError 
    3333 
    34 __doc__ = N_("""pykotme v%s (c) %s %s 
     34__doc__ = N_("""pykotme v%(__version__)s (c) %(__years__)s %(__author__)s 
    3535 
    3636Gives print quotes to users. 
     
    7272  input. The quote will list the job size, and the price the job 
    7373  would cost on each printer. 
    74  
    75 This program is free software; you can redistribute it and/or modify 
    76 it under the terms of the GNU General Public License as published by 
    77 the Free Software Foundation; either version 2 of the License, or 
    78 (at your option) any later version. 
    79  
    80 This program is distributed in the hope that it will be useful, 
    81 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    82 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    83 GNU General Public License for more details. 
    84  
    85 You should have received a copy of the GNU General Public License 
    86 along with this program; if not, write to the Free Software 
    87 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    88  
    89 Please e-mail bugs to: %s""") 
     74""") 
    9075         
    9176         
  • pykota/trunk/bin/repykota

    r2303 r2344  
    3737from pykota import reporter 
    3838 
    39 __doc__ = N_("""repykota v%s (c) %s %s 
     39__doc__ = N_("""repykota v%(__version__)s (c) %(__years__)s %(__author__)s 
    4040 
    4141Generates print quota reports. 
     
    8181  arguments representing users or groups names are ignored, and only the 
    8282  current user/group is reported. 
    83  
    84 This program is free software; you can redistribute it and/or modify 
    85 it under the terms of the GNU General Public License as published by 
    86 the Free Software Foundation; either version 2 of the License, or 
    87 (at your option) any later version. 
    88  
    89 This program is distributed in the hope that it will be useful, 
    90 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    91 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    92 GNU General Public License for more details. 
    93  
    94 You should have received a copy of the GNU General Public License 
    95 along with this program; if not, write to the Free Software 
    96 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    97  
    98 Please e-mail bugs to: %s""") 
     83""") 
    9984         
    10085class RePyKota(PyKotaTool) :         
  • pykota/trunk/bin/warnpykota

    r2303 r2344  
    3333from pykota.storage import PyKotaStorageError 
    3434 
    35 __doc__ = N_("""warnpykota v%s (c) %s %s 
     35__doc__ = N_("""warnpykota v%(__version__)s (c) %(__years__)s %(__author__)s 
    3636 
    3737Sends mail to users over print quota. 
     
    7979  arguments representing users or groups names are ignored, and only the 
    8080  current user/group is reported. 
    81  
    82 This program is free software; you can redistribute it and/or modify 
    83 it under the terms of the GNU General Public License as published by 
    84 the Free Software Foundation; either version 2 of the License, or 
    85 (at your option) any later version. 
    86  
    87 This program is distributed in the hope that it will be useful, 
    88 but WITHOUT ANY WARRANTY; without even the implied warranty of 
    89 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    90 GNU General Public License for more details. 
    91  
    92 You should have received a copy of the GNU General Public License 
    93 along with this program; if not, write to the Free Software 
    94 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    95  
    96 Please e-mail bugs to: %s""") 
     81""") 
    9782         
    9883class WarnPyKota(PyKotaTool) :