diff options
Diffstat (limited to 'scripts/rcynic-lta')
-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 |