Changeset 5116 for main/waeup.sirp


Ignore:
Timestamp:
2 Apr 2010, 13:13:11 (14 years ago)
Author:
uli
Message:
  • Use only uppercase prefixes.
  • Be accurate when determining the next batch number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r5112 r5116  
    5555        self.creation_date = creation_date
    5656        self.creator = creator
    57         self.prefix = batch_prefix
     57        self.prefix = batch_prefix.upper()
    5858        self.cost = cost
    5959        self.entry_num = entry_num
     
    132132        """
    133133        num = 1
    134         prefix = prefix.upper()
    135         while self.get('%s-%s' % (prefix, num), None):
     134        while self.get('%s-%s' % (prefix, num), None) is not None:
    136135            num += 1
    137136        return num
Note: See TracChangeset for help on using the changeset viewer.