Changeset 3288 for pykota/trunk/bin

Show
Ignore:
Timestamp:
01/11/08 19:08:24 (16 years ago)
Author:
jerome
Message:

Moved all exceptions definitions to a dedicated module.

Location:
pykota/trunk/bin
Files:
17 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/autopykota

    r3275 r3288  
    2626import os 
    2727 
    28 from pykota.tool import PyKotaTool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     29from pykota.tool import PyKotaTool, crashed, N_ 
    2930 
    3031__doc__ = N_("""autopykota v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/cupspykota

    r3276 r3288  
    4444from mx import DateTime 
    4545 
    46 from pykota.tool import PyKotaTool, PyKotaToolError, crashed 
     46from pykota.errors import PyKotaToolError 
     47from pykota.tool import PyKotaTool, crashed 
    4748from pykota.accounter import openAccounter 
    4849from pykota import cups 
  • pykota/trunk/bin/dumpykota

    r3275 r3288  
    2424import sys 
    2525 
    26 from pykota.tool import PyKotaCommandLineError, crashed, N_ 
     26from pykota.errors import PyKotaCommandLineError 
     27from pykota.tool import crashed, N_ 
    2728from pykota.dumper import DumPyKota 
    2829 
  • pykota/trunk/bin/edpykota

    r3275 r3288  
    2424import sys 
    2525 
    26 from pykota.tool import Percent, PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     26from pykota.errors import PyKotaCommandLineError 
     27from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    2728from pykota.storage import StorageUserPQuota, StorageGroupPQuota 
    2829 
  • pykota/trunk/bin/pkbanner

    r3275 r3288  
    3333    from reportlab.lib.units import cm 
    3434except ImportError :     
    35     hasRL = 0 
     35    hasRL = False 
    3636else :     
    37     hasRL = 1 
     37    hasRL = True 
    3838     
    3939try : 
    4040    import PIL.Image  
    4141except ImportError :     
    42     hasPIL = 0 
     42    hasPIL = False 
    4343else :     
    44     hasPIL = 1 
     44    hasPIL = True 
    4545     
    46 from pykota.tool import Tool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     46from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     47from pykota.tool import Tool, crashed, N_ 
    4748 
    4849__doc__ = N_("""pkbanner v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pkbcodes

    r3275 r3288  
    2626import pwd 
    2727 
    28 from pykota.tool import Percent, PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaCommandLineError 
     29from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    2930from pykota.storage import StorageBillingCode 
    3031 
  • pykota/trunk/bin/pkinvoice

    r3276 r3288  
    3333    from reportlab.lib.units import cm 
    3434except ImportError :     
    35     hasRL = 0 
     35    hasRL = False 
    3636else :     
    37     hasRL = 1 
     37    hasRL = True 
    3838     
    3939try : 
    4040    import PIL.Image  
    4141except ImportError :     
    42     hasPIL = 0 
     42    hasPIL = False 
    4343else :     
    44     hasPIL = 1 
    45  
    46 from pykota.tool import Percent, PyKotaTool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     44    hasPIL = True 
     45 
     46from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     47from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    4748 
    4849__doc__ = N_("""pkinvoice v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pkmail

    r3275 r3288  
    3131import email.Utils 
    3232 
    33 from pykota.tool import PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     33from pykota.errors import PyKotaCommandLineError 
     34from pykota.tool import PyKotaTool, crashed, N_ 
    3435     
    3536__doc__ = N_("""pkmail v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pknotify

    r3276 r3288  
    3131    import PAM 
    3232except ImportError :     
    33     hasPAM = 0 
     33    hasPAM = False 
    3434else :     
    35     hasPAM = 1 
    36  
    37 from pykota.tool import Tool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     35    hasPAM = True 
     36 
     37from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     38from pykota.tool import Tool, crashed, N_ 
    3839 
    3940__doc__ = N_("""pknotify v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pkprinters

    r3276 r3288  
    2626import pwd 
    2727 
    28 from pykota.tool import Percent, PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaCommandLineError 
     29from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    2930from pykota.storage import StoragePrinter 
    3031 
  • pykota/trunk/bin/pkrefund

    r3276 r3288  
    3333    from reportlab.lib.units import cm 
    3434except ImportError :     
    35     hasRL = 0 
     35    hasRL = False 
    3636else :     
    37     hasRL = 1 
     37    hasRL = True 
    3838     
    3939try : 
    4040    import PIL.Image  
    4141except ImportError :     
    42     hasPIL = 0 
     42    hasPIL = False 
    4343else :     
    44     hasPIL = 1 
    45  
    46 from pykota.tool import Percent, PyKotaTool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     44    hasPIL = True 
     45 
     46from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     47from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    4748 
    4849__doc__ = N_("""pkrefund v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pkturnkey

    r3275 r3288  
    2929import signal 
    3030 
    31 from pykota.tool import Tool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     31from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     32from pykota.tool import Tool, crashed, N_ 
    3233 
    3334__doc__ = N_("""pkturnkey v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pkusers

    r3275 r3288  
    2626import grp 
    2727 
    28 from pykota.tool import Percent, PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaCommandLineError 
     29from pykota.tool import Percent, PyKotaTool, crashed, N_ 
    2930from pykota.storage import StorageUser, StorageGroup 
    3031 
  • pykota/trunk/bin/pykosd

    r3275 r3288  
    3333    sys.exit(-1) 
    3434 
    35 from pykota.tool import PyKotaTool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     35from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     36from pykota.tool import PyKotaTool, crashed, N_ 
    3637 
    3738__doc__ = N_("""pykosd v%(__version__)s (c) %(__years__)s %(__author__)s 
  • pykota/trunk/bin/pykotme

    r3275 r3288  
    2626import pwd 
    2727 
    28 from pykota.tool import PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaCommandLineError 
     29from pykota.tool import PyKotaTool, crashed, N_ 
    2930from pykota.accounter import openAccounter 
    3031     
  • pykota/trunk/bin/repykota

    r3275 r3288  
    2828from mx import DateTime 
    2929 
    30 from pykota.tool import PyKotaTool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 
     30from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     31from pykota.tool import PyKotaTool, crashed, N_ 
    3132from pykota import reporter 
    3233 
  • pykota/trunk/bin/warnpykota

    r3275 r3288  
    2626import pwd 
    2727 
    28 from pykota.tool import PyKotaTool, PyKotaCommandLineError, crashed, N_ 
     28from pykota.errors import PyKotaCommandLineError 
     29from pykota.tool import PyKotaTool, crashed, N_ 
    2930 
    3031__doc__ = N_("""warnpykota v%(__version__)s (c) %(__years__)s %(__author__)s