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

Method PerformRepoCommitInPython

src/EmbedPython/PythonRoutines.cpp:130–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130QString PythonRoutines::PerformRepoCommitInPython(const QString &localRepo,
131 const QString &bookid,
132 const QStringList &bookinfo,
133 const QString &bookroot,
134 const QStringList &bookfiles)
135{
136 QString results;
137 int rv = -1;
138 QString error_traceback;
139 QList<QVariant> args;
140 args.append(QVariant(localRepo));
141 args.append(QVariant(bookid));
142 args.append(QVariant(bookinfo));
143 args.append(QVariant(bookroot));
144 args.append(QVariant(bookfiles));
145
146 EmbeddedPython * epython = EmbeddedPython::instance();
147
148 QVariant res = epython->runInPython( QString("repomanager"),
149 QString("performCommit"),
150 args,
151 &rv,
152 error_traceback);
153 if (rv == 0) {
154 results = res.toString();
155 }
156 return results;
157}
158
159
160bool PythonRoutines::PerformRepoEraseInPython(const QString& localRepo, const QString& bookid)

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
runInPythonMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected