def _get_post_metric_name(self, iresource: IInterface) -> str: name = 'process.post' if iresource.isOrExtends(IProposalVersion): name = 'process.post.proposalversion' elif iresource.isOrExtends(IRateVersion): name = 'process.post.rateversion' return name
def __init__(self, interface: IInterface, config): assert interface.isOrExtends(Interface) self.interface = interface
def __init__(self, isheet: IInterface, config): assert isheet.isOrExtends(ISheet) self.isheet = isheet