Beispiel #1
0
 def addFile(pOut):
     '''Used to make a file that will be shown in output tab of website. If
     the file does not exist, it will make a new one that can be written to.'''
     matches = _pComm.__addFile.finditer(pOut)
     for m in matches:
         if m is not None:
             FileChecker.addFile(m.group("name"),
                                 m.group("fileName"),
                                 m.group("desc"))
             
             if not os.path.isfile("output/" + m.group("fileName")):
                 open(os.path.join(DIR_FILEOUTPUT,m.group("fileName")),"w").close()
             
             StatusIO.write("Pipeline added file: <a href='%s' target='_blank'>%s</a> - %s" \
                            % ("output/" + m.group("fileName"),
                               m.group("name"),
                               m.group("desc")))
         pOut = pOut.replace(m.group(),"")
     return pOut
Beispiel #2
0
 def getfiles(self):
     return FileChecker.getFiles(get_response(),get_request().get_field("lastFileId"))