code: 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()f _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())
docs: Set an attribute on the local instance for each key/val in url_map
  
          CherryPy uses class attributes to resolve URLs.