On 07/18/2013 12:26 PM, Kevin L. Mitchell wrote: > On Thu, 2013-07-18 at 11:09 -0300, Sandy Walsh wrote: >> 3. some other ugly python hack that I haven't thought of yet. > > I have two possibilities, though neither is really ideal. One is to > provide a duplicate call for registering the callback, but where the > callback has the extra arguments. The other is to use the functions in > the "inspect" module to determine what convention the callback is > expecting. >
Yeah, I was thinking something similar where we could wrapper the callback with a partial and apply properties to it. The callback could look for these attributes being present or not. Works but feels very chicken-bone to me. _______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
