products/CPSUid

changeset 26:e0fddf7d3079

Key must not be unicode for kw args passed.
author fguillaume
date Thu, 24 Aug 2006 09:46:23 +0000
parents 609ab66c5ca4
children 97ef654eee55
files uidgenerator.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/uidgenerator.py
     1.2 +++ b/uidgenerator.py
     1.3 @@ -130,7 +130,8 @@
     1.4          for keyword in self.generation_criteria:
     1.5              # XXX AT: capsule related fix: get rid of colons in keyword name
     1.6              # hoping no conflict will occur
     1.7 -            criteria[keyword.replace(':', '_')] = kw.get(keyword)
     1.8 +            key = str(keyword.replace(':', '_')) # no unicode
     1.9 +            criteria[key] = kw.get(keyword)
    1.10          counter = self._getCounter(**criteria)
    1.11          mapping.update(criteria)
    1.12          mapping['number'] = counter.hit()