~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-19 10:34:45 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1169
Changed svn:ignore on trunk - no longer need to ignore bin or svn directories
    (bin is in repo, svn is gone).
Added .bzrignore, for Bazaar branches of this repository.

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, basestring):
 
53
        elif isinstance(role, str):
54
54
            try:
55
55
                self._role = Role._roles_to_int[role.lower()]
56
56
            except KeyError: