| 202 | } |
| 203 | |
| 204 | bool 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 | |
| 229 | QString PythonRoutines::GenerateEpubFromTagInPython(const QString& localRepo, |
nothing calls this directly
no test coverage detected