<div dir="ltr">Keystone has a notifications module that is based on this idea. When implementing notification in Keystone, we wanted it to be easy to deliver notifications on new resources and extensions [1], which is where the idea of the wrapper came from. With that framework in place, we wrap our CRUD methods in the Manager layer [2]. Beyond the base implementation, which consisted of the resource, the operation type, and the UUID of the resource, the framework has been leveraged for more detailed auditing (pycadf). Regardless, we do it through a wrapper method.<div>
<br></div><div><br></div><div>[1] <a href="https://github.com/openstack/keystone/blob/5017993c361a0ecfb7db6b2ebc18b7e9cf135d84/keystone/notifications.py#L50">https://github.com/openstack/keystone/blob/5017993c361a0ecfb7db6b2ebc18b7e9cf135d84/keystone/notifications.py#L50</a></div>
<div><div class="gmail_extra">[2] <a href="https://github.com/openstack/keystone/blob/5017993c361a0ecfb7db6b2ebc18b7e9cf135d84/keystone/assignment/core.py#L73">https://github.com/openstack/keystone/blob/5017993c361a0ecfb7db6b2ebc18b7e9cf135d84/keystone/assignment/core.py#L73</a></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 11:43 AM, Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@vmware.com" target="_blank">gkotton@vmware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi,</div>
<span>
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>When reviewing <a href="https://review.openstack.org/#/c/107954" target="_blank">https://review.openstack.org/#/c/107954</a>/ it occurred to me that maybe we should consider having some kind of generic object wrapper that could do notifications for objects. Any thoughts
on this?</div></div></span></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<span><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Thanks</div><span class=""><font color="#888888">
<div>Gary</div>
</font></span></div>
</span>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div>