And then the actual information about triggers/aliases/timers:
class XMLTrigger(XMLObject):
magic_data = (0, 'triggers', 'trigger')
valid_attribs = [
'back_colour', 'bold', 'clipboard_arg', 'colour_change_type',
'custom_colour', 'enabled', 'expand_variables', 'group',
'ignore_case', 'inverse', 'italic', 'keep_evaluating',
'lines_to_match', 'lowercase_wildcard', 'make_bold', 'make_italic',
'make_underline', 'match', 'match_back_colour', 'match_bold',
'match_inverse', 'match_italic', 'match_text_colour',
'match_underline', 'multi_line', 'name', 'omit_from_log',
'omit_from_output', 'one_shot', 'other_back_colour',
'other_text_colour', 'regexp', 'repeat', 'script', 'send',
'send_to', 'sequence', 'sound', 'sound_if_inactive',
'temporary', 'text_colour', 'user', 'variable',
]
valid_flags = {
eEnabled: 'enabled',
eOmitFromLog: 'omit_from_log',
eOmitFromOutput: 'omit_from_output',
eKeepEvaluating: 'keep_evaluating',
eIgnoreCase: 'ignore_case',
eTriggerRegularExpression: 'regexp',
eExpandVariables: 'expand_variables',
eLowercaseWildcard: 'lowercase_wildcard',
eTemporary: 'temporary',
}
class XMLAlias(XMLObject):
magic_data = (1, 'aliases', 'alias')
valid_attribs = [
'echo_alias', 'enabled', 'expand_variables', 'group', 'ignore_case',
'keep_evaluating', 'match', 'menu', 'name', 'omit_from_command_history',
'omit_from_log', 'omit_from_output', 'one_shot', 'regexp', 'script',
'send', 'send_to', 'sequence', 'temporary', 'user', 'variable',
]
valid_flags = {
eEnabled: 'enabled',
eIgnoreAliasCase: 'ignore_case',
eOmitFromLogFile: 'omit_from_log',
eAliasRegularExpression: 'regexp',
eExpandVariables: 'expand_variables',
eAliasMenu: 'menu',
eTemporary: 'temporary',
}
class XMLTimer(XMLObject):
magic_data = (2, 'timers', 'timer')
valid_attribs = [
'active_closed', 'at_time', 'enabled', 'group', 'hour', 'minute', 'name',
'offset_hour', 'offset_minute', 'offset_second', 'omit_from_log',
'omit_from_output', 'one_shot', 'script', 'second', 'send', 'send_to',
'temporary', 'variable',
]
valid_flags = {
eEnabled: 'enabled',
eAtTime: 'at_time',
eOneShot: 'one_shot',
eActiveWhenClosed: 'active_closed',
eTemporary: 'temporary',
}
class XMLMacro(XMLObject):
magic_data = (3, 'macros', 'macro')
# crippled due to lack of information
|