def _setattr_url_map(self):
        '''
        Set an attribute on the local instance for each key/val in url_map

        CherryPy uses class attributes to resolve URLs.
        '''
        if self.apiopts.get('enable_sessions', True) is False:
            url_blacklist = ['login', 'logout', 'minions', 'jobs']
        else:
            url_blacklist = []

        urls = ((url, cls) for url, cls in six.iteritems(self.url_map)
                if url not in url_blacklist)

        for url, cls in urls:
            setattr(self, url, cls())
def _setattr_url_map ( self ) : if self . apiopts . get ( 'enable_sessions' , True ) is False : url_blacklist = [ 'login' , 'logout' , 'minions' , 'jobs' ] else : url_blacklist = [ ] urls = ( ( url , cls ) for url , cls in six . iteritems ( self . url_map ) if url not in url_blacklist ) for url , cls in urls : setattr ( self , url , cls ( ) )
Set an attribute on the local instance for each key/val in url_map

        CherryPy uses class attributes to resolve URLs.