Comment 1 for bug 507680

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

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.