Skip to content

Commit

Permalink
Refactoring canStruct to hasCanonicalForm, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed Jun 10, 2025
1 parent 8749dc0 commit a545b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/Bastion/Curator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""
import datetime

from Bastion.Common import Thing, Boggle, canStruct
from Bastion.Common import Thing, Boggle, hasCanonicalForm
from Bastion.Model import ARK, isAsset
from Bastion.Chronology import Quantim
from Bastion.Humane import humanize
Expand Down Expand Up @@ -141,7 +141,7 @@ def drift(self):
#-- {quantim} is the 8 character encoding of timestamp using the Quantim method
#-- F 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(canStruct):
class Manifest(hasCanonicalForm):
"""
I represent the chronicled archive of some dataset.
I hold a series of "snaps".
Expand Down
8 changes: 4 additions & 4 deletions lib/Bastion/Site.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import random
import datetime

from Bastion.Common import entity, Thing, canStruct, DAYS, RDN, asPath, asLogLevel, canConStruct
from Bastion.Common import entity, Thing, hasCanonicalForm, fromCanonicalForm, DAYS, RDN, asPath, asLogLevel
from Bastion.Condo import CxNode
from Bastion.Model import ARK, isAsset, isZone, isSite
#from .Curator import Asset
Expand All @@ -24,7 +24,7 @@



class Site(isSite, canStruct):
class Site(isSite, hasCanonicalForm):
SITES = { }

@staticmethod
Expand Down Expand Up @@ -152,7 +152,7 @@ def asset(self, ark):
# return None


class RetentionPolicy(canStruct, canConStruct):
class RetentionPolicy(hasCanonicalForm, fromCanonicalForm):
"""
How long to store an object, how many copies, and where the copies are deposited.
"""
Expand Down Expand Up @@ -205,7 +205,7 @@ def fromJDN(cls, jdn):



class Asset(isAsset, canStruct):
class Asset(isAsset, hasCanonicalForm):
def __init__(self, zone, *args, **kwargs):
"""
Asset(zone:Zone, name:str)
Expand Down

0 comments on commit a545b03

Please sign in to comment.