MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / GenerateEpubFromTagInPython

Method GenerateEpubFromTagInPython

src/EmbedPython/PythonRoutines.cpp:229–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229QString PythonRoutines::GenerateEpubFromTagInPython(const QString& localRepo,
230 const QString& bookid,
231 const QString& tagname,
232 const QString& filename,
233 const QString& destpath)
234{
235 QString results;
236 int rv = -1;
237 QString error_traceback;
238 QList<QVariant> args;
239 args.append(QVariant(localRepo));
240 args.append(QVariant(bookid));
241 args.append(QVariant(tagname));
242 args.append(QVariant(filename));
243 args.append(QVariant(destpath));
244
245 EmbeddedPython * epython = EmbeddedPython::instance();
246
247 QVariant res = epython->runInPython( QString("repomanager"),
248 QString("generate_epub_from_tag"),
249 args,
250 &rv,
251 error_traceback);
252 if (rv == 0) {
253 results = res.toString();
254 }
255 return results;
256}
257
258
259QString PythonRoutines::GenerateDiffFromCheckPoints(const QString& localRepo,

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
runInPythonMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected