Changeset 2678

Show
Ignore:
Timestamp:
02/12/06 00:26:31 (18 years ago)
Author:
jerome
Message:

Incorrect variable name

Location:
pykota/trunk/pykota/storages
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2676 r2678  
    16331633            patterns = billingcodepattern.split(",") 
    16341634            for (codeid, fields) in result : 
    1635                 bcode = self.databaseToUserCharset(fields.get("pykotaBillingCode", [""])[0]) 
    1636                 if self.tool.matchString(bcode, patterns) : 
     1635                codename = self.databaseToUserCharset(fields.get("pykotaBillingCode", [""])[0]) 
     1636                if self.tool.matchString(codename, patterns) : 
    16371637                    code = StorageBillingCode(self, codename) 
    16381638                    code.ident = codeid 
    1639                     code.BillingCode = codename 
    16401639                    code.PageCounter = int(fields.get("pykotaPageCounter", [0])[0]) 
    16411640                    code.Balance = float(fields.get("pykotaBalance", [0.0])[0]) 
  • pykota/trunk/pykota/storages/sql.py

    r2676 r2678  
    450450            patterns = billingcodepattern.split(",") 
    451451            for record in result : 
    452                 bcode = self.databaseToUserCharset(record["billingcode"]) 
    453                 if self.tool.matchString(bcode, patterns) : 
    454                     code = StorageBillingCode(self, bcode) 
     452                codename = self.databaseToUserCharset(record["billingcode"]) 
     453                if self.tool.matchString(codename, patterns) : 
     454                    code = StorageBillingCode(self, codename) 
    455455                    code.ident = record.get("id") 
    456456                    code.Balance = record.get("balance") or 0.0