aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-10-22 12:30:36 +0000
committerRob Austein <sra@hactrn.net>2007-10-22 12:30:36 +0000
commitd69c5842416c037c49157120ac4a44da1aa2d233 (patch)
tree9da0aa7ea3901a64e9a46a1f44374145876a256d
parentab4daef3183d9932c6afd92370536b04cbcf29d3 (diff)
Checkpoint
svn path=/scripts/rpki/exceptions.py; revision=1183
-rw-r--r--scripts/rpki/exceptions.py3
-rw-r--r--scripts/rpki/relaxng.py2
-rw-r--r--scripts/rpki/sql.py2
-rwxr-xr-xscripts/rpkid.py2
4 files changed, 6 insertions, 3 deletions
diff --git a/scripts/rpki/exceptions.py b/scripts/rpki/exceptions.py
index 3fce43b4..3c65f2b1 100644
--- a/scripts/rpki/exceptions.py
+++ b/scripts/rpki/exceptions.py
@@ -37,3 +37,6 @@ class BadClassNameSyntax(Exception):
class BadIssueResponse(Exception):
"""issue_response PDU with wrong number of classes or certificates."""
+
+class NotImplementedYet(Exception):
+ """Internal error -- not implemented yet."""
diff --git a/scripts/rpki/relaxng.py b/scripts/rpki/relaxng.py
index 72211ded..ead96834 100644
--- a/scripts/rpki/relaxng.py
+++ b/scripts/rpki/relaxng.py
@@ -6,7 +6,7 @@ import lxml.etree
## Parsed RelaxNG left_right schema
left_right = lxml.etree.RelaxNG(lxml.etree.fromstring('''<?xml version="1.0" encoding="UTF-8"?>
<!--
- $Id: left-right-schema.rnc 1088 2007-10-04 03:06:25Z sra $
+ $Id: left-right-schema.rng 1182 2007-10-22 08:37:55Z sra $
RelaxNG (Compact Syntax) Schema for RPKI left-right protocol.
diff --git a/scripts/rpki/sql.py b/scripts/rpki/sql.py
index 1bc328a5..891c7662 100644
--- a/scripts/rpki/sql.py
+++ b/scripts/rpki/sql.py
@@ -426,7 +426,7 @@ class ca_detail_obj(sql_persistant):
new CRL is needed.
"""
- raise NotImplementedError, "NIY"
+ raise rpki.exceptions.NotImplementedYet
def generate_manifest(self, gctx):
"""Generate a new manifest for this ca_detail."""
diff --git a/scripts/rpkid.py b/scripts/rpkid.py
index fb0ccd60..3072eb59 100755
--- a/scripts/rpkid.py
+++ b/scripts/rpkid.py
@@ -36,7 +36,7 @@ def up_down_handler(query, path):
return 500, "Unhandled exception %s" % data
def cronjob_handler(query, path):
- raise NotImplementedError, "NIY"
+ raise rpki.exceptions.NotImplementedYet
class global_context(object):
"""A place to stash various global parameters."""