Package lemon :: Package external :: Package gadfly :: Module server :: Class Policy
[show private | hide private]
[frames | no frames]

Class Policy


security policy

Method Summary
  __init__(self, name, password, connection, queries)
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.
  __setitem__(self, name, value)
  action(self, certificate, datastring, socket)
perform a database/server action after checking certificate...
  certify(self, datastring, certificate, password)
  execute(self, cursor, statement, params)
execute a statement in a cursor...
  execute_any_statement(self, statement, params)
execute any statement.
  execute_named(self, name, params)
execute a named (prepared) sql statement...
  policy_CHECKPOINT(self, socket)
  policy_EXECUTE_PREPARED(self, name, dyn, socket)
  policy_EXECUTE_STATEMENT(self, stat, dyn, socket)
  policy_RESTART(self, socket)
  policy_SHUTDOWN(self, socket)
  reply_exception(self, exc, info, socket)
  reply_success(self, data, socket)

Class Variable Summary
int general_queries = 0                                                                     
NoneType named_accesses = None                                                                  
NoneType prepared_cursors = None                                                                  
int verbose = 0                                                                     

Method Details

__init__(self, name, password, connection, queries=0)
(Constructor)

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)

action(self, certificate, datastring, socket)

perform a database/server action after checking certificate

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

execute a statement in a cursor

execute_any_statement(self, statement, params=None)

execute any statement.

execute_named(self, name, params=None)

execute a named (prepared) sql statement

Class Variable Details

general_queries

Type:
int
Value:
0                                                                     

named_accesses

Type:
NoneType
Value:
None                                                                  

prepared_cursors

Type:
NoneType
Value:
None                                                                  

verbose

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Nov 10 15:08:05 2003 http://epydoc.sf.net