~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/caps.py

  • Committer: chadnickbok
  • Date: 2009-01-27 05:13:56 UTC
  • Revision ID: svn-v4:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1176
Fixed a small issue with non-unicode strings being passed
into storm

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        # Internally, stored as an int
51
51
        if isinstance(role, Role):
52
52
            self._role = role._role
53
 
        elif isinstance(role, str):
 
53
        elif isinstance(role, basestring):
54
54
            try:
55
55
                self._role = Role._roles_to_int[role.lower()]
56
56
            except KeyError: