| 227 | |
| 228 | |
| 229 | QString 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 | |
| 259 | QString PythonRoutines::GenerateDiffFromCheckPoints(const QString& localRepo, |
nothing calls this directly
no test coverage detected