Skip to content

Commit

Permalink
added toJDN method
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed Sep 4, 2024
1 parent 37021a4 commit 736efe7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Bastion/Curator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 736efe7

Please sign in to comment.