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

Method ChangeRepoTagMsgInPython

src/EmbedPython/PythonRoutines.cpp:204–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool PythonRoutines::ChangeRepoTagMsgInPython(const QString& localRepo, const QString& bookid, const QString& tagname, const QString& newmessage)
205{
206 bool results = false;
207 int rv = -1;
208 QString error_traceback;
209 QList<QVariant> args;
210 args.append(QVariant(localRepo));
211 args.append(QVariant(bookid));
212 args.append(QVariant(tagname));
213 args.append(QVariant(newmessage));
214
215 EmbeddedPython * epython = EmbeddedPython::instance();
216
217 QVariant res = epython->runInPython( QString("repomanager"),
218 QString("update_annotated_tag_message"),
219 args,
220 &rv,
221 error_traceback);
222 if (rv == 0) {
223 results = (res.toInt() > 0);
224 }
225 return results;
226}
227
228
229QString PythonRoutines::GenerateEpubFromTagInPython(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