from CCP4ReportParser import *

class sculptor_report(Report):
    TASKNAME = 'sculptor'
    RUNNING = False
    USEPROGRAMXML = False
    def __init__(self,xmlnode=None,jobInfo={},jobStatus=None,**kw):
        Report. __init__(self,xmlnode=xmlnode,jobInfo=jobInfo,**kw)
        self.addText(text='Finished: ')
        pdbsWrittenPath = '//sculptor/number_output_files'
        pdbsWrittenStringS = xmlnode.xpath(pdbsWrittenPath)
        if len(pdbsWrittenStringS) > 0:
            pdbsWrittenString = xmlnode.xpath(pdbsWrittenPath)[0].text
            self.addText(text=pdbsWrittenString+' edited model(s) created')
