Show
Ignore:
Timestamp:
07/06/05 20:11:00 (19 years ago)
Author:
jerome
Message:

The pkbcodes command line tool now works fine with the PostgreSQL
backend. The dumpykota command can now dump billing codes too.
Still no code for LDAP though.
NB : a database upgrade is necessary AGAIN !
Severity : no need to play with this until there's LDAP support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbcodes

    r2340 r2342  
    104104            raise PyKotaToolError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 
    105105             
    106         if options["list"] and not names : 
     106        if (options["list"] or options["reset"]) and not names : 
    107107            names = ["*"] 
    108108             
     
    113113                if billingcode.Exists : 
    114114                    if options["skipexisting"] : 
    115                         self.printInfo(_("Billing code [%s] already exists, skipping.") % billingcode.Name) 
     115                        self.printInfo(_("Billing code [%s] already exists, skipping.") % billingcode.BillingCode) 
    116116                    else :     
    117                         self.printInfo(_("Billing code [%s] already exists, will be modified.") % billingcode.Name) 
     117                        self.printInfo(_("Billing code [%s] already exists, will be modified.") % billingcode.BillingCode) 
    118118                        billingcodes.append(billingcode) 
    119119                else : 
     
    133133            elif options["list"] :     
    134134                print "%s [%s] %s %s %s %.2f %s" % \ 
    135                       (billingcode.Name, billingcode.Description, \ 
     135                      (billingcode.BillingCode, billingcode.Description, \ 
    136136                       billingcode.PageCounter, \ 
    137137                       _("pages"), \