From 736efe7717b70cac8ac3dd4ff4a4e66e9f575fe9 Mon Sep 17 00:00:00 2001 From: Nathan Denny Date: Tue, 3 Sep 2024 21:24:51 -0400 Subject: [PATCH] added toJDN method --- lib/Bastion/Curator.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Bastion/Curator.py b/lib/Bastion/Curator.py index 22eb5d5..9902b7f 100644 --- a/lib/Bastion/Curator.py +++ b/lib/Bastion/Curator.py @@ -128,7 +128,7 @@ def drift(self): #-- {quantim} is the 8 character encoding of timestamp using the Quantim method #-- A if the blob is an anchor (full backup) and D if the blob is a differential. #-- {anchor} - is a 3 character random string that cannot conflict with any other anchors currently in the archive. -class Manifest: +class Manifest(canTextify): """ I represent the chronicled archive of some dataset. I hold a series of "snaps". @@ -205,6 +205,14 @@ def anchors(self): """ return tuple(sorted(self._anchors.values, key = lambda item: item.RDN)) + #------------------------ + #-- canTextify protocol | + #↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ + def toJDN(self, **kwargs): + return [str(item) for item in self] + #↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ + #-- canTextify protocol | + #------------------------ class Snap: