Table of Contents

Class: Policy Zope-2.2.1-src/lib/python/Products/ZGadflyDA/gadfly/gfserve.py

security policy

Methods   
__init__
__setitem__
action
certify
execute
execute_any_statement
execute_named
policy_CHECKPOINT
policy_EXECUTE_PREPARED
policy_EXECUTE_STATEMENT
policy_RESTART
policy_SHUTDOWN
reply_exception
reply_success
  __init__ 
__init__ (
        self,
        name,
        password,
        connection,
        queries=0,
        )

create a policy (name, password, connection)

name is the name of the policy password is the access policy (None for no password) connection is the database connection. set queries to allow general accesses (unrestricted)

  __setitem__ 
__setitem__ (
        self,
        name,
        value,
        )

Exceptions   
ValueError
  action 
action (
        self,
        certificate,
        datastring,
        socket,
        )

perform a database/server action after checking certificate

Exceptions   
CHECKPOINT
RESTART
SHUTDOWN
ServerError
  certify 
certify (
        self,
        datastring,
        certificate,
        password,
        )

  execute 
execute (
        self,
        cursor,
        statement,
        params=None,
        )

execute a statement in a cursor

  execute_any_statement 
execute_any_statement (
        self,
        statement,
        params=None,
        )

execute any statement.

  execute_named 
execute_named (
        self,
        name,
        params=None,
        )

execute a named (prepared) sql statement

Exceptions   
PreparedNameError
  policy_CHECKPOINT 
policy_CHECKPOINT ( self,  socket )

Exceptions   
CHECKPOINT
  policy_EXECUTE_PREPARED 
policy_EXECUTE_PREPARED (
        self,
        name,
        dyn,
        socket,
        )

  policy_EXECUTE_STATEMENT 
policy_EXECUTE_STATEMENT (
        self,
        stat,
        dyn,
        socket,
        )

Exceptions   
ServerError
  policy_RESTART 
policy_RESTART ( self,  socket )

Exceptions   
RESTART
  policy_SHUTDOWN 
policy_SHUTDOWN ( self,  socket )

Exceptions   
SHUTDOWN
  reply_exception 
reply_exception (
        self,
        exc,
        info,
        socket,
        )

  reply_success 
reply_success (
        self,
        data,
        socket,
        )


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6