Esempio n. 1
0
 def to_xml(self, xmlgen, form_info):
     curnode = xmlgen.push('report')
     curnode.attr('type', self.report_type)
     curnode.attr('name', self.label)
     xmlgen.pushtext('header', self.header)
     self.form_deps(xmlgen, form_info)
     introspect.callall(self, '_to_xml', xmlgen, curnode)
     xmlgen.pop()
Esempio n. 2
0
 def to_xml(self, xmlgen, form_info):
     curnode = xmlgen.push('report')
     curnode.attr('type', self.report_type)
     curnode.attr('name', self.label)
     xmlgen.pushtext('header', self.header)
     self.form_deps(xmlgen, form_info)
     introspect.callall(self, '_to_xml', xmlgen, curnode)
     xmlgen.pop()
Esempio n. 3
0
 def check(self, msgs=None):
     """
     After loading, base classes may need to warn the user about
     things such as form version skew.
     """
     if msgs is None:
         msgs = messages.Messages()
     introspect.callall(self, '_check', msgs)
     return msgs
Esempio n. 4
0
 def to_xml(self, xmlgen):
     curnode = xmlgen.push('report')
     curnode.attr('type', self.report_type)
     curnode.attr('name', self.label)
     xmlgen.pushtext('header', self.header)
     if self.syndrome_id is not None:
         synd = syndrome.syndromes[self.syndrome_id]
         xmlgen.pushtext('syndrome', synd.name)  # Informational
     introspect.callall(self, '_to_xml', xmlgen, curnode)
     xmlgen.pop()
Esempio n. 5
0
 def forms_used(self):
     used = set()
     introspect.callall(self, '_forms_used', used)
     return used
Esempio n. 6
0
 def forms_used(self):
     used = set()
     introspect.callall(self, '_forms_used', used)
     return used
Esempio n. 7
0
 def cols_update(self):
     """
     Called prior to processing user request to update column options
     """
     introspect.callall(self, '_cols_update')
Esempio n. 8
0
 def defaults(self, msgs=None):
     if msgs is None:
         msgs = messages.Messages()
     introspect.callall(self, '_defaults', msgs)
     return msgs
Esempio n. 9
0
 def __init__(self, syndrome_id):
     self.syndrome_id = syndrome_id
     introspect.callall(self, 'init')