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

« back to all changes in this revision

Viewing changes to ivle/caps.py

  • Committer: matt.giuca
  • Date: 2009-01-14 07:17:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:branches%2Fstorm:1128
ivle.caps: Bugfix - now Role accepts unicode strings.

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: