)]}'
{"doc/source/devref/callbacks.rst":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"2e389a799fc084bead3dbeb786a8c42b32d1a15b","unresolved":false,"context_lines":[{"line_number":43,"context_line":"* how to consume/produce messages selectively;"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Translate and narrow this down to Neutron needs, and this means the design of a callback"},{"line_number":46,"context_line":"system where messages are about lifecycle events (e.g. before creation, before"},{"line_number":47,"context_line":"deletion, etc.) of Neutron resources (e.g. networks, routers, ports, etc.), where the"},{"line_number":48,"context_line":"various parties can express interest in knowing when these events for a specific"},{"line_number":49,"context_line":"resources take place."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a4dcd0f_2f4bb5b2","line":46,"updated":"2015-08-12 01:52:48.000000000","message":"Neutron network resource ... is not a valid callbacks resource...   why ?","commit_id":"522eb1ed6e1a20af287e9fe2b6d7699b833ef5c4"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"62385c53c35e0cbfea9194b2f6a496eba8b3bcd6","unresolved":false,"context_lines":[{"line_number":43,"context_line":"* how to consume/produce messages selectively;"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Translate and narrow this down to Neutron needs, and this means the design of a callback"},{"line_number":46,"context_line":"system where messages are about lifecycle events (e.g. before creation, before"},{"line_number":47,"context_line":"deletion, etc.) of Neutron resources (e.g. networks, routers, ports, etc.), where the"},{"line_number":48,"context_line":"various parties can express interest in knowing when these events for a specific"},{"line_number":49,"context_line":"resources take place."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1a4dcd0f_1832bda7","line":46,"in_reply_to":"1a4dcd0f_2f4bb5b2","updated":"2015-08-12 03:44:48.000000000","message":"it\u0027s simply not used right now, when it is, it\u0027ll be added.","commit_id":"522eb1ed6e1a20af287e9fe2b6d7699b833ef5c4"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"317cfae885dcad2d6696b41807a45b6d89612834","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"   Short answer is yes. The callbacks module defines literals for what are considered core Neutron"},{"line_number":306,"context_line":"   resources and events. However, the ability to subscribe/notify is not limited to these as you"},{"line_number":307,"context_line":"   can use your own defined resources and/or events. Just make sure you use string literals, as typos"},{"line_number":308,"context_line":"   are common, and the registry does not provide any runtime validation. Therefore, make sure you"},{"line_number":309,"context_line":"   test your code!"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_58004502","line":307,"updated":"2015-08-12 04:17:10.000000000","message":"Please check line wrap. almost a blank line is inserted.","commit_id":"f0927d3213bed2476fe16da53a04c5728427b1c5"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"aa32945ea6b0406feb55cf2fcedd7e82ed2675c1","unresolved":false,"context_lines":[{"line_number":304,"context_line":""},{"line_number":305,"context_line":"   Short answer is yes. The callbacks module defines literals for what are considered core Neutron"},{"line_number":306,"context_line":"   resources and events. However, the ability to subscribe/notify is not limited to these as you"},{"line_number":307,"context_line":"   can use your own defined resources and/or events. Just make sure you use string literals, as typos"},{"line_number":308,"context_line":"   are common, and the registry does not provide any runtime validation. Therefore, make sure you"},{"line_number":309,"context_line":"   test your code!"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a4dcd0f_e6287899","line":307,"in_reply_to":"1a4dcd0f_58004502","updated":"2015-08-12 15:11:41.000000000","message":"docs do not follow the strict 80 char limit.","commit_id":"f0927d3213bed2476fe16da53a04c5728427b1c5"}],"neutron/callbacks/manager.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"33b0133e00cf3f3f894cdc0eef8c43148e5ada71","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        except KeyError:"},{"line_number":48,"context_line":"            # Initialize the registry for unknown resources and/or events"},{"line_number":49,"context_line":"            # prior to enlisting the callback."},{"line_number":50,"context_line":"            self._callbacks[resource][event] \u003d collections.defaultdict()"},{"line_number":51,"context_line":"            self._callbacks[resource][event][callback_id] \u003d callback"},{"line_number":52,"context_line":"        # We keep a copy of callbacks to speed the unsubscribe operation."},{"line_number":53,"context_line":"        if callback_id not in self._index:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_12283a99","line":50,"updated":"2015-08-12 16:10:22.000000000","message":"just use a regular dict() or {} here. the defaultdict doesn\u0027t buy us anything.","commit_id":"935e63c9d6056aae297a90ae83e2ce630a0df087"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"7d36dc785b10ed324a1f66b63875690e78343bd4","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        except KeyError:"},{"line_number":48,"context_line":"            # Initialize the registry for unknown resources and/or events"},{"line_number":49,"context_line":"            # prior to enlisting the callback."},{"line_number":50,"context_line":"            self._callbacks[resource][event] \u003d collections.defaultdict()"},{"line_number":51,"context_line":"            self._callbacks[resource][event][callback_id] \u003d callback"},{"line_number":52,"context_line":"        # We keep a copy of callbacks to speed the unsubscribe operation."},{"line_number":53,"context_line":"        if callback_id not in self._index:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_fd89df6f","line":50,"in_reply_to":"1a4dcd0f_12283a99","updated":"2015-08-12 16:20:37.000000000","message":"Done","commit_id":"935e63c9d6056aae297a90ae83e2ce630a0df087"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"33b0133e00cf3f3f894cdc0eef8c43148e5ada71","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"\"\"Brings the manager to a clean slate.\"\"\""},{"line_number":128,"context_line":"        self._callbacks \u003d collections.defaultdict(dict)"},{"line_number":129,"context_line":"        self._index \u003d collections.defaultdict(dict)"},{"line_number":130,"context_line":"        for resource in resources.CORE:"},{"line_number":131,"context_line":"            for event in events.CORE:"},{"line_number":132,"context_line":"                self._callbacks[resource][event] \u003d collections.defaultdict()"},{"line_number":133,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_921a0a7c","line":130,"updated":"2015-08-12 16:10:22.000000000","message":"any reason to do this now that you have the logic on L48?","commit_id":"935e63c9d6056aae297a90ae83e2ce630a0df087"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"7d36dc785b10ed324a1f66b63875690e78343bd4","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"\"\"Brings the manager to a clean slate.\"\"\""},{"line_number":128,"context_line":"        self._callbacks \u003d collections.defaultdict(dict)"},{"line_number":129,"context_line":"        self._index \u003d collections.defaultdict(dict)"},{"line_number":130,"context_line":"        for resource in resources.CORE:"},{"line_number":131,"context_line":"            for event in events.CORE:"},{"line_number":132,"context_line":"                self._callbacks[resource][event] \u003d collections.defaultdict()"},{"line_number":133,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_1d984b77","line":130,"in_reply_to":"1a4dcd0f_921a0a7c","updated":"2015-08-12 16:20:37.000000000","message":"I wanted to keep this method.","commit_id":"935e63c9d6056aae297a90ae83e2ce630a0df087"}],"neutron/callbacks/resources.py":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"2e389a799fc084bead3dbeb786a8c42b32d1a15b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    ROUTER_INTERFACE,"},{"line_number":27,"context_line":"    SECURITY_GROUP,"},{"line_number":28,"context_line":"    SECURITY_GROUP_RULE,"},{"line_number":29,"context_line":"    SUBNET,"},{"line_number":30,"context_line":")"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_0fbcb9b9","line":29,"updated":"2015-08-12 01:52:48.000000000","message":"I\u0027m not at all familiar with callbacks, so take this as a \"stupid\" question....but why is \"network\" not a core resource?","commit_id":"522eb1ed6e1a20af287e9fe2b6d7699b833ef5c4"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"62385c53c35e0cbfea9194b2f6a496eba8b3bcd6","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    ROUTER_INTERFACE,"},{"line_number":27,"context_line":"    SECURITY_GROUP,"},{"line_number":28,"context_line":"    SECURITY_GROUP_RULE,"},{"line_number":29,"context_line":"    SUBNET,"},{"line_number":30,"context_line":")"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_981ecd0a","line":29,"in_reply_to":"1a4dcd0f_0fbcb9b9","updated":"2015-08-12 03:44:48.000000000","message":"Here only the resources currently used in the code base are listed. These have been added over time.","commit_id":"522eb1ed6e1a20af287e9fe2b6d7699b833ef5c4"}]}
