Changeset 8543 for main/waeup.kofa/trunk


Ignore:
Timestamp:
29 May 2012, 10:48:05 (12 years ago)
Author:
Henrik Bettermann
Message:

Container keys are strings not integers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py

    r8540 r8543  
    3232    if container is not None:
    3333        key = r().randint(99999,1000000)
    34         while key in container.keys():
     34        while str(key) in container.keys():
    3535            key = r().randint(99999,1000000)
    3636        return u"%s_%d" % (container.code, key)
Note: See TracChangeset for help on using the changeset viewer.