def run_publish(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc == None: return error("Cannot find document " + doc_id) if doc.lint_time == "": lintadas.check_doc(doc.id) lintadas.check_files(doc.id) if doc.lint_time == "": return error("Error inspecting document " + doc_id) if doc.mirror_time == "": mirror.mirror(doc.id) if doc.mirror_time == "": return error("Error mirroring document " + doc_id) # Instantiate and run the Makefile.py project. from Makefile import Project project = Project(doc.id) project.write() project.make("clean") project.make("publish") go_back(req)
def run_lintadas(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc==None: return error("Cannot find document " + doc_id) lintadas.check_doc(doc.id) lintadas.check_files(doc.id) go_back(req)
def run_lintadas(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc == None: return error("Cannot find document " + doc_id) lintadas.check_doc(doc.id) lintadas.check_files(doc.id) go_back(req)
def run_mirror(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc==None: return error("Cannot find document " + str(doc_id)) if doc.lint_time=='': lintadas.check_doc(doc.id) lintadas.check_files(doc.id) if doc.lint_time=='': return error("Error inspecting document " + doc_id) mirror.mirror(doc.id) if doc.mirror_time=='': return error("Error mirroring document " + doc_id) go_back(req)
def run_mirror(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc == None: return error("Cannot find document " + str(doc_id)) if doc.lint_time == "": lintadas.check_doc(doc.id) lintadas.check_files(doc.id) if doc.lint_time == "": return error("Error inspecting document " + doc_id) mirror.mirror(doc.id) if doc.mirror_time == "": return error("Error mirroring document " + doc_id) go_back(req)
def run_publish(req, doc_id): doc = dms.document.get_by_id(int(doc_id)) if doc==None: return error("Cannot find document " + doc_id) if doc.lint_time=='': lintadas.check_doc(doc.id) lintadas.check_files(doc.id) if doc.lint_time=='': return error("Error inspecting document " + doc_id) if doc.mirror_time=='': mirror.mirror(doc.id) if doc.mirror_time=='': return error("Error mirroring document " + doc_id) # Instantiate and run the Makefile.py project. from Makefile import Project project = Project(doc.id) project.write() project.make('clean') project.make('publish') go_back(req)