Table of Contents

Class: DatabaseAuthorizer | Twisted-0.19.0/twisted/enterprise/dbcred.py
--- | ---
A PyPgSQL authorizer for Twisted Internet Passport
Base Classes |
--- | ---
authorizer.Authorizer adbapi.Augmentation
Methods |
--- | ---
__init__ _cbIdentity addEmptyIdentity addIdentity addPerspective changePassword | getIdentities getIdentityRequest getPerspectives getServices removeIdentity removePerspective
| __init__
    __init__ ( self,  dbpool )
| _cbIdentity
    _cbIdentity ( self,  identData )
Exceptions |
--- | ---
KeyError( "Identity not found" )
| addEmptyIdentity
    addEmptyIdentity (
            self,
            identityName,
            hashedPassword,
            callback=None,
            errback=None,
            )
Create an empty identity (no perspectives). Used by web admin interface.
| addIdentity
    addIdentity ( self,  identity )
Create an identity.
| addPerspective
    addPerspective (
            self,
            identityName,
            perspectiveName,
            serviceName,
            callback=None,
            errback=None,
            )
Add a perspective by name to an identity.
| changePassword
    changePassword (
            self,
            identityName,
            hashedPassword,
            callback=None,
            errback=None,
            )
| getIdentities
    getIdentities ( self )
Get the identies in the db. Used by web admin interface.
| getIdentityRequest
    getIdentityRequest ( self,  name )
This name corresponds to the `source_name` column of the metrics_sources table. Check in that table for a corresponding entry.
| getPerspectives
    getPerspectives ( self,  identity_name )
Get the perspectives for an identity. Used by the web admin interface.
| getServices
    getServices ( self )
Get the known services. Used by the web admin interface.
| removeIdentity
    removeIdentity ( self,  identityName )
Delete an identity
| removePerspective
    removePerspective (
            self,
            identityName,
            perspectiveName,
            callback=None,
            errback=None,
            )
Delete a perspective for an identity

Table of Contents

This document was automatically generated on Sun Jul 14 19:52:36 2002 by HappyDoc version 2.0