Package buildbot :: Package status :: Package web :: Module auth :: Class BasicAuth
[frames] | no frames]

Class BasicAuth

source code

AuthBase --+
           |
          BasicAuth

Instance Methods
 
__init__(self, userpass)
userpass is a list of (user, passwd).
source code
 
authenticate(self, user, passwd)
Check that user/passwd is a valid user/pass tuple.
source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from AuthBase: __providedBy__, errmsg, getUserInfo

Class Variables
  userpass = []
List of user/pass tuples.
  __implemented__ = <implementedBy buildbot.status.web.auth.Basi...

Inherited from AuthBase: err, master

Method Details

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']

Overrides: AuthBase.__provides__

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.web.auth.BasicAuth>