def build_level(xml, level):
     xml.attrs(
         name=level.name,
         value=level.value,
         symbol=make_symbol(p.name, "level", level.name),
         message=level.message
     )
 def build_task(xml, task):
     xml.attrs(
         name=task.name,
         symbol=make_symbol(p.name, "task", task.name),
         value=task.value,
         message=task.message
     )
 def build_filter(xml, filter):
     xml.attrs(
         name=filter.name,
         value=filter.value,
         tid=filter.template.name if filter.template else None,
         symbol=make_symbol(p.name, "filter", filter.name),
     )
 def build_opcode(xml, opcode):
     xml.attrs(
         name=opcode.name,
         symbol=make_symbol(p.name, "opcode", opcode.name),
         value=opcode.value,
         message=opcode.message
     )
Exemple #5
0
 def build_filter(xml, filter):
     xml.attrs(
         name=filter.name,
         value=filter.value,
         tid=filter.template.name if filter.template else None,
         symbol=make_symbol(p.name, "filter", filter.name),
     )
 def build_channel(xml, channel):
     xml.attrs(
         chid=channel.name,
         name="{}/{}".format(channel.name, channel.type),
         type=channel.type,
         enabled=channel.enabled
     )
Exemple #7
0
 def build_event(xml, evt):
     xml.attrs(symbol=make_symbol(p.name, "event", evt.name),
               template=evt.template.name if evt.template else None,
               value=evt.value,
               level=evt.level.name if evt.level else None,
               channel=evt.channel.name if evt.channel else None,
               task=evt.task.name if evt.task else None,
               opcode=evt.opcode.name if evt.opcode else None,
               keywords=evt.keywords.name if evt.keywords else None,
               message=evt.message)
        def build_template(xml, template):
            xml.attrs(
                tid=template.name
            )

            for d in template.data:
                data_xml = xml.add(
                    'data',
                    name=d[0],
                    inType=d[1]
                )
 def build_event(xml, evt):
     xml.attrs(
         symbol=make_symbol(p.name, "event", evt.name),
         template=evt.template.name if evt.template else None,
         value=evt.value,
         level=evt.level.name if evt.level else None,
         channel=evt.channel.name if evt.channel else None,
         task=evt.task.name if evt.task else None,
         opcode=evt.opcode.name if evt.opcode else None,
         keywords=evt.keywords.name if evt.keywords else None,
         message=evt.message
     )
 def build_keyword(xml, keyword):
     xml.attrs(
         name=keyword.name,
         mask=keyword.mask
     )
Exemple #11
0
 def build_channel(xml, channel):
     xml.attrs(chid=channel.name,
               name="{}/{}".format(channel.name, channel.type),
               type=channel.type,
               enabled=channel.enabled)
Exemple #12
0
 def build_level(xml, level):
     xml.attrs(name=level.name,
               value=level.value,
               symbol=make_symbol(p.name, "level", level.name),
               message=level.message)
Exemple #13
0
 def build_keyword(xml, keyword):
     xml.attrs(name=keyword.name, mask=keyword.mask)
Exemple #14
0
 def build_opcode(xml, opcode):
     xml.attrs(name=opcode.name,
               symbol=make_symbol(p.name, "opcode", opcode.name),
               value=opcode.value,
               message=opcode.message)
Exemple #15
0
 def build_task(xml, task):
     xml.attrs(name=task.name,
               symbol=make_symbol(p.name, "task", task.name),
               value=task.value,
               message=task.message)
Exemple #16
0
        def build_template(xml, template):
            xml.attrs(tid=template.name)

            for d in template.data:
                data_xml = xml.add('data', name=d[0], inType=d[1])