Ignore:
Timestamp:
22/02/10 13:51:08 (11 years ago)
Author:
pjkersha
Message:

Completed pickle support for AuthzDecision?* types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/ndg_security_saml/saml/common/__init__.py

    r6602 r6603  
    142142    def __eq__(self, version): 
    143143        """Test for equality against an input version string, tuple or list""" 
    144                  
    145         if isinstance(version, basestring): 
     144        if isinstance(version, SAMLVersion): 
     145            return str(self) == str(version) 
     146           
     147        elif isinstance(version, basestring): 
    146148            return self.__version == SAMLVersion.valueOf(version) 
     149         
    147150        elif isinstance(version, (tuple, list)): 
    148151            return self.__version == tuple(version) 
Note: See TracChangeset for help on using the changeset viewer.