At FactsheetExporter I have data instance variable. I need to pass data as instance variable to Parameter class but have no ideas how. Do you know how to make it?
class FactsheetExporter:
def __init__(self):
self.data = {somedata...}
class Parameter:
def __init__(self):
self.data = data
def compute(self):
do_stuff(self.data)
# do data stuff...
class PortfolioFactsheetExporter(FactsheetExporter):
class Meta(FactsheetExporter.Meta):
name = "export_portfolio_factsheets"
entities = Parameter()
Meta. What is that supposed to do? The desired relationships between these classes aren't exactly clear. Could you describe exactly what those relationships should be?