The upload needs to be done by the master, of course (the slave has no access to the database). The code to do this should slot into TranslationTemplatesBuildBehavior._uploadTarball (look for the XXX with this bug's number).
As per our discussions yesterday, the chosen approach is for this code to pass the tarball straight to ITranslationImportQueue.addOrUpdateEntriesFromTarball, passing a new parameter that will tell it that the upload embodies the complete set of templates. With that information in hand, addOrUpdateEntriesFromTarball can approve instantly.
The upload needs to be done by the master, of course (the slave has no access to the database). The code to do this should slot into TranslationTemp latesBuildBehav ior._uploadTarb all (look for the XXX with this bug's number).
As per our discussions yesterday, the chosen approach is for this code to pass the tarball straight to ITranslationImp ortQueue. addOrUpdateEntr iesFromTarball, passing a new parameter that will tell it that the upload embodies the complete set of templates. With that information in hand, addOrUpdateEntr iesFromTarball can approve instantly.