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

Method PerformRepoEraseInPython

src/EmbedPython/PythonRoutines.cpp:160–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160bool PythonRoutines::PerformRepoEraseInPython(const QString& localRepo, const QString& bookid)
161{
162 bool results = false;
163 int rv = -1;
164 QString error_traceback;
165 QList<QVariant> args;
166 args.append(QVariant(localRepo));
167 args.append(QVariant(bookid));
168
169 EmbeddedPython * epython = EmbeddedPython::instance();
170
171 QVariant res = epython->runInPython( QString("repomanager"),
172 QString("eraseRepo"),
173 args,
174 &rv,
175 error_traceback);
176 if (rv == 0) {
177 results = (res.toInt() > 0);
178 }
179 return results;
180}
181
182QStringList PythonRoutines::GetRepoTagsInPython(const QString& localRepo, const QString& bookid)
183{

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
runInPythonMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected