)]}'
{"etc/neutron.conf":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"96ceffd096ea4c7240d7fcaf234ca4f17a3f7a35","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"# (ListOpt) List of intercept handlers that all requests should be passed"},{"line_number":76,"context_line":"# through before being called on the target plugin."},{"line_number":77,"context_line":"# api_intercept_handlers \u003d"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"# Paste configuration file"},{"line_number":80,"context_line":"# api_paste_config \u003d api-paste.ini"}],"source_content_type":"text/plain","patch_set":7,"id":"1abeadc6_3838b33c","line":77,"updated":"2014-08-28 04:07:01.000000000","message":"can you provide the logger class here as an example value?","commit_id":"3f92e05dafad8183e7e2fb1a578907e715606d46"}],"neutron/db/common_db_mixin.py":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"96ceffd096ea4c7240d7fcaf234ca4f17a3f7a35","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        return dict((k, v) for (k, v) in"},{"line_number":195,"context_line":"                    data.iteritems() if k in columns)"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    def has_plugin_interface(self, interface):"},{"line_number":198,"context_line":"        \"\"\"Returns a boolean indicating support for an extension interface.\"\"\""},{"line_number":199,"context_line":"        return isinstance(self, interface)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_180a1779","line":197,"updated":"2014-08-28 04:07:01.000000000","message":"So I believe the assumption is that every plugin (either core or service) will inherit from the CommonDbMixin? And this is currently the case, and the only place where you can put this.","commit_id":"3f92e05dafad8183e7e2fb1a578907e715606d46"}],"neutron/manager.py":[{"author":{"_account_id":10310,"name":"Mandeep Dhami","email":"dhami@noironetworks.com","username":"mandeepdhami"},"change_message_id":"5266cd2d8a1b604c0011da930c236e26a55f7efd","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            constants.CORE: self.plugin"},{"line_number":128,"context_line":"        }"},{"line_number":129,"context_line":"        self._load_service_plugins()"},{"line_number":130,"context_line":"        self.interceptor.load_intercept_handlers()"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _get_plugin_instance(self, namespace, plugin_provider):"},{"line_number":133,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_1c0a1527","line":130,"updated":"2014-07-31 22:42:01.000000000","message":"Another option would be to not make any other changes to __init__()\nor _load_services_from_plugin() except adding the last line as:\n\n   self.interceptor \u003d Interceptor(self)\n\nwhere Interceptor takes a NeutronManager as an argument and\n \"monkey patches\" it\u0027s values for self.plugin and self.service_plugins\nIF it is configured.\n\nThat way, if no API interceptor is not enabled, there is \"zero\" change,\nand if it is configured you are not involved in how NeutronManager\nsets-up the plugin/service_plugins, it just updates them in place by\na proxy to intercepts all calls to them.","commit_id":"d785258c920416b3ee7d84d8246ad880bac01d29"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"50cf643e6902c7730a5829c38ae3db6a1c58af63","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            constants.CORE: self.plugin"},{"line_number":128,"context_line":"        }"},{"line_number":129,"context_line":"        self._load_service_plugins()"},{"line_number":130,"context_line":"        self.interceptor.load_intercept_handlers()"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _get_plugin_instance(self, namespace, plugin_provider):"},{"line_number":133,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_37aa92d2","line":130,"in_reply_to":"baada198_1c0a1527","updated":"2014-07-31 22:45:57.000000000","message":"Good idea.","commit_id":"d785258c920416b3ee7d84d8246ad880bac01d29"}],"neutron/tests/unit/test_intercept_handler.py":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"96ceffd096ea4c7240d7fcaf234ca4f17a3f7a35","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    def _log(self, msg, interpol):"},{"line_number":49,"context_line":"        # separate method to mock out for unit tests"},{"line_number":50,"context_line":"        LOG.info(msg, interpol)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"class InterceptPluginTestCase(test_db_plugin.NeutronDbPluginV2TestCase):"},{"line_number":54,"context_line":"    def setUp(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_38b99379","line":51,"updated":"2014-08-28 04:07:01.000000000","message":"Could we also add a test interceptor here which passes the call to another plugin?","commit_id":"3f92e05dafad8183e7e2fb1a578907e715606d46"}]}
