mozilla/addon-sdk — pull request #564 by KWierso (2012-09-10 21:01:00+00:00)
Title: Bug 613587 - Make cfx init generate the jid

This takes over where pull request 461 left off. It fell behind and then I screwed up the branch it was on, so it was easier to just make a new pull request than clean up what was there.

This changes __init__.py to use the preflight.create_jid() to generate the jid, and fixes the test so it knows about the jid being in package.json from the start.

I had to change what initializer() returns to include both the status code (1 or 0) and the jid, as I couldn't think of any other way to pass the randomly generated jid into the test for it to use. If you can think of a better way, feel free to suggest it.