def exportAttributes(self, outfile, level, namespace_='', name_='ConfigType'): if self.TaskbarName is not None: outfile.write(' TaskbarName=%s' % (quote_attrib(self.TaskbarName), )) if self.XmsUnits is not None: outfile.write(' XmsUnits=%s' % (quote_attrib(self.XmsUnits), )) if self.VMLoc is not None: outfile.write(' VMLoc=%s' % (quote_attrib(self.VMLoc), )) outfile.write(' Name=%s' % (quote_attrib(self.Name), )) if self.EclipseArgs is not None: outfile.write(' EclipseArgs=%s' % (quote_attrib(self.EclipseArgs), )) if self.ShowSplash is not None: outfile.write(' ShowSplash="%s"' % self.format_boolean(str_lower(str(self.ShowSplash)), input_name='ShowSplash')) if self.Refresh is not None: outfile.write(' Refresh="%s"' % self.format_boolean(str_lower(str(self.Refresh)), input_name='Refresh')) if self.Xms is not None: outfile.write(' Xms=%s' % (quote_attrib(self.Xms), )) outfile.write(' EclipseLoc=%s' % (quote_attrib(self.EclipseLoc), )) if self.Xmx is not None: outfile.write(' Xmx=%s' % (quote_attrib(self.Xmx), )) if self.Clean is not None: outfile.write(' Clean="%s"' % self.format_boolean(str_lower(str(self.Clean)), input_name='Clean')) if self.VMArgs is not None: outfile.write(' VMArgs=%s' % (quote_attrib(self.VMArgs), )) outfile.write(' WorkspaceLoc=%s' % (quote_attrib(self.WorkspaceLoc), )) if self.XmxUnits is not None: outfile.write(' XmxUnits=%s' % (quote_attrib(self.XmxUnits), )) if self.Description is not None: outfile.write(' Description=%s' % (quote_attrib(self.Description), ))
def exportAttributes(self, outfile, level, namespace_='', name_='ExecutionResult'): outfile.write(' status="%s"' % str(self.get_status())) outfile.write(' local-dump-created="%s"' % str_lower(str(self.get_local_dump_created()))) if self.get_log_location() is not None: outfile.write(' log-location="%s"' % (quote_attrib(self.get_log_location()), )) outfile.write(' export-dump-created="%s"' % str_lower(str(self.get_export_dump_created())))
def exportChildren(self, outfile, level, namespace_='inv:', name_='schedule_type'): if self.schedule: self.schedule.export(outfile, level, namespace_, name_='schedule', ) if self.enabled is not None: showIndent(outfile, level) outfile.write('<%senabled>%s</%senabled>\n' % (namespace_, self.format_boolean(str_lower(str(self.enabled)), input_name='enabled'), namespace_)) if self.created is not None: showIndent(outfile, level) outfile.write('<%screated>%s</%screated>\n' % (namespace_, self.format_integer(self.created, input_name='created'), namespace_)) for description_ in self.description: description_.export(outfile, level, namespace_, name_='description')