ProjectMeniscus/meniscus — pull request #91 by stevendgonzales (2013-03-14 13:42:36+00:00)
Title: impolemet openstack.common.jsonutils throught codebase,also corrected all import * in codebase

Added jsonutils from openstack library. I followed openstack practice of creating openstack.common under the meniscus directory, and adding a openstack-common.conf file to the root directory. I used the update.py in the oslo project to import the modules.

For all API responses i added a format_response_body method in meniscus.api (same location as load_body() method). meniscus.api now imports jsonutils instead of json. All API resources are using these methods and not importing json or jsonutils.

The only other places that import json were reading form uWSGI cache, I replaced these json imports with json utils.

I followed the ceilometer practice of using from meniscus.openstack.common import jsonutils (thanks Chad)

I made the same updates to all test modules as well.

Since I was looking through codebase for use of the json library I went ahead and changed all instances of "from import * " by replacing * with the specific items to import.