pep8 cleanup in the plugin code

The nova hacking test turned up one alphabetization error
that I missed previously.  Also, our path-altering
process caused one line to exceed 80 characters
when copied into nova; that line is shorter now.

Change-Id: Ia3acfc25ecc5ba388526766dae3ed03792e906e3
Minor pep8 cleanup in rpc.

Removed a space, reordered an import.

Change-Id: I418d1f7c6a5a3b8ef231c88b4ef28114ca0eb7cd
Fix missing gettextutils in several modules.

Fixes bug 1021453.

Change-Id: I05771a588746a0e43fec0078c5c7152dd9d33b9f
Add SKIP_WRITE_GIT_CHANGELOG option to setup.py

Updates the write_git_changelog function in setup.py so that
it will skip changelog generation if the SKIP_WRITE_GIT_CHANGELOG
env variable is set.

The motivation for this change is to speed up running sdist which
gets executed at the begining of a tox run. Some projects (like Nova)
can take between 10-20 seconds to generate a changelog in this fashion.

Change-Id: I2e75060d303bc8fae784129e8e42f09922a8b09e
Add SKIP_GENERATE_AUTHORS option to setup.py

Updates the generate_authors function in setup.py so that
it will skip generation of the authors file if the
SKIP_GENERATE_AUTHORS env variable is set.

Authors doesn't currently take that long to generate but having
the option to explicitly skip it (regardless of whether .git is there)
seems like a good addition.

Change-Id: Ie18064d2450cecc86f18d0b10e1ce473253d1a51
Merge "Add SKIP_GENERATE_AUTHORS option to setup.py"
Add more rpc version docs.

This patch adds some additional documentation, including some examples,
on making changes to versioned RPC APIs.

Change-Id: I5f40b11e07538f36d0f1299f7e822b408bf8e96a
Fix import order of gettextutils in amqp.py

Change-Id: I53ca8308fb61c53274ca1e3d801f22c9b65d41aa
Exclude .egg files from pep8 checks

Change-Id: I0f403cfa8edec3795f65cf270a9cb2ad0a05d4f5
Merge "Exclude .egg files from pep8 checks"
Fix typo made in 372d11e990

Change-Id: Iba232257595bb3084052a21a560f2f5551b5f1eb
Restore register_opts on impl_zmq module load

Change-Id: I6acdf1445e1f03246476292b38d7c52a29934af1
Add additional usage info on rpc_zmq_host flag

Change-Id: I8f1f3b42de7253c993e2afa44ed1c0ad4dbbb74f
Merge "pep8 cleanup in the plugin code"
Merge "Minor pep8 cleanup in rpc."
Merge "Restore register_opts on impl_zmq module load"
Merge "Add additional usage info on rpc_zmq_host flag"
Use strtime() in to_primitive() for datetime objs.

This patch updates jsonutils.to_primitive() to use timeutils.strtime()
to convert a datimetime object to a string instead of just using str().
This ensures that we can easily convert the string back to a datetime
using timeutils.parse_strtime().

Required for the nova blueprint no-db-messaging.

Change-Id: I725b333695930e12e2832378102514326fec639c
Don't switch to list_notifier unless necessary.

Some notification tests depend on a different, single notifier being
used. So, don't switch to the list notifier just because we loaded
this class; only switch if an actual plugin needs it.

Also: improved the test that makes sure all this notifier-switching
doesn't break the notifier that was present in the first place.

Change-Id: I170477bccb3ad9505fe6dbfbc214f77c09f6862f
cfg: allow empty config values

Fixes bug #1025522

Commit 83044a7 caused this to stop working in Quantum:

  api_extensions_path =

and could only be worked around with:

  api_extensions_path = ""

Change-Id: I8c1a57225a2c135e6baf567b8e71d61e974da4e2