| 128 | |
| 129 | |
| 130 | QString 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 | |
| 160 | bool PythonRoutines::PerformRepoEraseInPython(const QString& localRepo, const QString& bookid) |
nothing calls this directly
no test coverage detected