class files(WaitTab): # noqa TAB_NAME = 'File' tab_form = DynamicTable( locator='.//h3[normalize-space(.)="File Entry"]/following-sibling::table', column_widgets={ 'Name': TextInput(id='entry_fname'), 'Collect Contents?': Checkbox(id='entry_content'), 'Actions': Button(title='Add this entry', classes=table_button_classes)}, assoc_column='Name', rows_ignore_top=1, action_row=0)
class registry(WaitTab): # noqa TAB_NAME = 'Registry' tab_form = DynamicTable( locator='.//h3[normalize-space(.)="Registry Entry"]/following-sibling::table', column_widgets={ 'Registry Hive': Text('.//tr[@id="new_tr"]/td[normalize-space(.)="HKLM"]'), 'Registry Key': TextInput(id='entry_kname'), 'Registry Value': TextInput(id='entry_value'), 'Actions': Button(title='Add this entry', classes=table_button_classes)}, assoc_column='Registry Key', rows_ignore_top=1, action_row=0)
class events(WaitTab): # noqa TAB_NAME = 'Event Log' tab_form = DynamicTable( locator='.//h3[normalize-space(.)="Event Log Entry"]/following-sibling::table', column_widgets={ 'Name': TextInput(id='entry_name'), 'Filter Message': TextInput(id='entry_message'), 'Level': TextInput(id='entry_level'), 'Source': TextInput(id='entry_source'), '# of Days': TextInput(id='entry_num_days'), 'Actions': Button(title='Add this entry', classes=table_button_classes)}, assoc_column='Name', rows_ignore_top=1, action_row=0)
class CompanyTagsAllView(RegionView): """Company Tags list view""" category_dropdown = BootstrapSelect('classification_name') table = DynamicTable(locator='//div[@id="classification_entries_div"]/table', column_widgets={ 'Name': Input(id='entry_name'), 'Description': Input(id='entry_description'), 'Actions': Button(title='Add this entry', classes=table_button_classes)}, assoc_column='Name', rows_ignore_top=1, action_row=0) @property def is_displayed(self): return ( self.company_tags.is_active() and self.table.is_displayed )