Package buildbot :: Package status :: Package web :: Module authz :: Class Authz
[frames] | no frames]

Class Authz

source code

object --+
         |
        Authz

Decide who can do what.

Instance Methods
 
__init__(self, default_action=False, auth=None, useHttpHeader=False, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
session(self, request) source code
 
authenticated(self, request) source code
 
getUserInfo(self, user) source code
 
getUsername(self, request)
Get the userid of the user
source code
 
getUsernameHTML(self, request)
Get the user formatated in html (with possible link to email)
source code
 
getUsernameFull(self, request)
Get the full username as fullname <email>
source code
 
getPassword(self, request) source code
 
advertiseAction(self, action, request)
Should the web interface even show the form for ACTION?
source code
 
actionAllowed(self, action, request, *args)
Is this ACTION allowed, given this http REQUEST?
source code
 
login(self, request)
Login one user, and return session cookie
source code
 
logout(self, request) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  knownActions = ['gracefulShutdown', 'forceBuild', 'forceAllBui...
Properties

Inherited from object: __class__

Method Details

__init__(self, default_action=False, auth=None, useHttpHeader=False, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details

knownActions

Value:
['gracefulShutdown',
 'forceBuild',
 'forceAllBuilds',
 'pingBuilder',
 'stopBuild',
 'stopAllBuilds',
 'cancelPendingBuild',
 'stopChange',
...