Logo Search packages:      
Sourcecode: zope-groupuserfolder version File versions

def zope-groupuserfolder-3.1.1::GRUFUser::GRUFUserAtom::hasRole (   self,
  args,
  kw 
)

hasRole is an alias for 'allowed' and has been deprecated.

Code still using this method should convert to either 'has_role' or
'allowed', depending on the intended behaviour.

Definition at line 545 of file GRUFUser.py.

00545                                   :
        """hasRole is an alias for 'allowed' and has been deprecated.

        Code still using this method should convert to either 'has_role' or
        'allowed', depending on the intended behaviour.

        """
        import warnings
        warnings.warn('BasicUser.hasRole is deprecated, please use '
            'BasicUser.allowed instead; hasRole was an alias for allowed, but '
            'you may have ment to use has_role.', DeprecationWarning)
        return self.allowed(*args, **kw)

    #                                                           #
    #               Underlying user object support              #
    #                                                           #
    
    def __getattr__(self, name):


Generated by  Doxygen 1.6.0   Back to index