Public Member Functions | |
def | fetch |
def | serve_fetch_one |
def | serve_set |
def | startElement |
Public Attributes | |
config_id | |
Static Public Attributes | |
tuple | attributes = ("action", "tag") |
XML attributes for this element. | |
string | element_name = "config" |
tuple | elements = ("bpki_crl",) |
XML elements contained by this element. | |
tuple | sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) |
int | wired_in_config_id = 1 |
<config/> element. This is a little weird because there should never be more than one row in the SQL config table, but we have to put the BPKI CRL somewhere and SQL is the least bad place available. So we reuse a lot of the SQL machinery, but we nail config_id at 1, we don't expose it in the XML protocol, and we only support the get and set actions.
Definition at line 41 of file publication.py.
def rpki.publication.config_elt.fetch | ( | cls, | ||
gctx | ||||
) |
Fetch the config object from SQL. This requires special handling because of the weird way we treat config_id.
Definition at line 67 of file publication.py.
def rpki.publication.config_elt.serve_fetch_one | ( | self | ) |
Find the config object on which a get or set method should operate.
Definition at line 82 of file publication.py.
def rpki.publication.config_elt.serve_set | ( | self, | ||
r_msg | ||||
) |
Handle a set action. This requires special handling because config we don't support the create method.
Reimplemented from rpki.xml_utils.data_elt.
Definition at line 73 of file publication.py.
def rpki.publication.config_elt.startElement | ( | self, | ||
stack, | ||||
name, | ||||
attrs | ||||
) |
StartElement() handler for config object. This requires special handling because of the weird way we treat config_id.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 59 of file publication.py.
tuple rpki.publication.config_elt.attributes = ("action", "tag") [static] |
XML attributes for this element.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 51 of file publication.py.
Definition at line 64 of file publication.py.
string rpki.publication.config_elt.element_name = "config" [static] |
Definition at line 52 of file publication.py.
tuple rpki.publication.config_elt.elements = ("bpki_crl",) [static] |
XML elements contained by this element.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 53 of file publication.py.
tuple rpki.publication.config_elt.sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) [static] |
Definition at line 55 of file publication.py.
int rpki.publication.config_elt.wired_in_config_id = 1 [static] |
Definition at line 57 of file publication.py.