[openstack-dev] Opinions needed: Changing method signature in RPC callback ...
Sandy Walsh
sandy.walsh at rackspace.com
Thu Jul 18 15:33:59 UTC 2013
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.
More information about the OpenStack-dev
mailing list