diff options
author | Rob Austein <sra@hactrn.net> | 2013-08-20 23:25:18 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-08-20 23:25:18 +0000 |
commit | 6df49d2a59d6aeb4d237b1fae69c7b727ed5a564 (patch) | |
tree | 1715f883b54381a7beea2283c8d01844dfe73272 | |
parent | c7cd2c9619b4b0264c7ccbb8902e20d8c3ae39a6 (diff) |
Checkpoint.
svn path=/trunk/; revision=5459
-rwxr-xr-x | scripts/rcynic-lta | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/rcynic-lta b/scripts/rcynic-lta index 64a7c9fb..9bfcfb13 100755 --- a/scripts/rcynic-lta +++ b/scripts/rcynic-lta @@ -80,6 +80,9 @@ def main(): print "Processing ancestors" process_ancestors(rpdb) print + print "Processing tree" + process_tree(rpdb) + print print "Closing DB" rpdb.close() @@ -176,6 +179,18 @@ def process_targets(rpdb): rpdb.add_para(obj, new_resources) +# Not really sure what to do about the conflict detection requirement +# in the last paragraph of 4.2.3. I think it stems at least in part +# from the rather arbitrary way that the draft mixes user control with +# required side effects. I guess one could detect the cases that this +# paragraph talks about by checking for an existing paracertificate +# before for every node during ancestor processing, and doing some +# kind of set operation like: +# +# ((original_ancestor ^ para_ancestor) & target) != null +# +# Ignore for now, I think, until the rest of this is working. + def process_ancestors(rpdb): for target in rpdb.find_targets(): target_resources = target.get_3779resources() @@ -214,6 +229,13 @@ def process_ancestors(rpdb): child = parent_to_follow +def process_tree(rpdb): + for target in rpdb.find_targets(): + + # CONTINUE HERE + raise NotImplementedError + + class DER_object_mixin(object): """ Mixin to add some SQL-related methods to classes derived from |