def __init__(self, karte, testerItems, visitorClass=None): self.__karte = karte if visitorClass: self.__visitor = visitorClass() else: self.__visitor = medic.Visitor() self.__tester_items = testerItems
def process(self, context): plugin_manager = medic.PluginManager() for k in plugin_manager.karteNames(): instance = context.create_instance("Medic/%s" % (k), family="karte") instance.data["karte"] = plugin_manager.karte(k) instance.data["visitor"] = medic.Visitor() instance.data["families"] = [k]
def __init__(self, karte, testerItems): self.__karte = karte self.__visitor = medic.Visitor() self.__tester_items = testerItems