parameters: (self, realm='authentication required')
docstring: Clear the auth info and enable basic auth.
docstring_summary: Clear the auth info and enable basic auth.
docstring_tokens: Clear the auth info and enable basic auth .
function: def set_basic(self, realm='authentication required'):
          """Clear the auth info and enable basic auth."""
          dict.clear(self)
          dict.update(self, {'__auth_type__': 'basic', 'realm': realm})
          if self.on_update:
              self.on_update(self)
function_tokens: def set_basic ( self , realm = 'authentication required' ) : dict . clear ( self ) dict . update ( self , { '__auth_type__' : 'basic' , 'realm' : realm } ) if self . on_update : self . on_update ( self )