rpki.left_right.data_elt Class Reference

Inherits rpki::xml_utils::data_elt, rpki::sql::sql_persistent, and rpki::left_right::left_right_namespace.

Inherited by rpki.left_right.bsc_elt, rpki.left_right.child_elt, rpki.left_right.parent_elt, rpki.left_right.repository_elt, and rpki.left_right.self_elt.

List of all members.

Public Member Functions

def bsc
def make_reply_clone_hook
def self
def serve_fetch_all
def serve_fetch_handle
def serve_fetch_one_maybe
def serve_pre_save_hook

Static Public Attributes

tuple handles = ()
 self_handle = None
 self_id = None

Detailed Description

Virtual class for top-level left-right protocol data elements.

Definition at line 50 of file left_right.py.


Member Function Documentation

def rpki.left_right.data_elt.bsc (   self  ) 
Return BSC object to which this object links.

Definition at line 64 of file left_right.py.

def rpki.left_right.data_elt.make_reply_clone_hook (   self,
  r_pdu 
)
Set handles when cloning, including _id -> _handle translation.

Reimplemented from rpki.xml_utils.data_elt.

Definition at line 68 of file left_right.py.

def rpki.left_right.data_elt.self (   self  ) 
Fetch self object to which this object links.

Definition at line 60 of file left_right.py.

def rpki.left_right.data_elt.serve_fetch_all (   self  ) 
Find the objects on which a list method should operate.

Reimplemented in rpki.left_right.self_elt.

Definition at line 99 of file left_right.py.

def rpki.left_right.data_elt.serve_fetch_handle (   cls,
  gctx,
  self_id,
  handle 
)
Find an object based on its handle.

Reimplemented in rpki.left_right.self_elt.

Definition at line 84 of file left_right.py.

def rpki.left_right.data_elt.serve_fetch_one_maybe (   self  ) 
Find the object on which a get, set, or destroy method should
operate, or which would conflict with a create method.

Reimplemented in rpki.left_right.self_elt.

Definition at line 90 of file left_right.py.

def rpki.left_right.data_elt.serve_pre_save_hook (   self,
  q_pdu,
  r_pdu,
  cb,
  eb 
)
Hook to do _handle => _id translation before saving.

self is always the object to be saved to SQL.  For create
operations, self and q_pdu are be the same object; for set
operations, self is the pre-existing object from SQL and q_pdu is
the set request received from the the IRBE.

Reimplemented from rpki.xml_utils.data_elt.

Reimplemented in rpki.left_right.bsc_elt.

Definition at line 106 of file left_right.py.


Member Data Documentation

tuple rpki.left_right.data_elt.handles = () [static]

Definition at line 58 of file left_right.py.

Definition at line 57 of file left_right.py.


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1