<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 9:52 PM, Kenichi Oomichi <span dir="ltr"><<a href="mailto:oomichi@mxs.nes.nec.co.jp" target="_blank">oomichi@mxs.nes.nec.co.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Doug,<br>
<div><div class="h5"><br>
> -----Original Message-----<br>
> From: Doug Hellmann [mailto:<a href="mailto:doug.hellmann@dreamhost.com">doug.hellmann@dreamhost.com</a>]<br>
> Sent: Tuesday, January 14, 2014 12:07 AM<br>
> To: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: Re: [openstack-dev] [wsme] Undefined attributes in WSME<br>
><br>
><br>
><br>
><br>
> On Mon, Jan 13, 2014 at 3:29 AM, Ken'ichi Ohmichi <<a href="mailto:ken1ohmichi@gmail.com">ken1ohmichi@gmail.com</a>> wrote:<br>
><br>
><br>
>       Hi Doug,<br>
><br>
>       2014/1/11 Doug Hellmann <<a href="mailto:doug.hellmann@dreamhost.com">doug.hellmann@dreamhost.com</a>>:<br>
><br>
>       > On Thu, Jan 9, 2014 at 12:02 AM, Jamie Lennox <<a href="mailto:jamielennox@redhat.com">jamielennox@redhat.com</a>><br>
>       > wrote:<br>
>       >><br>
>       >> Is there any way to have WSME pass through arbitrary attributes to the<br>
>       >> created object? There is nothing that i can see in the documentation or code<br>
>       >> that would seem to support this.<br>
>       >><br>
>       >> In keystone we have the situation where arbitrary data was able to be<br>
>       >> attached to our resources. For example there are a certain number of<br>
>       >> predefined attributes for a user including name, email but if you want to<br>
>       >> include an address you just add an 'address': 'value' to the resource<br>
>       >> creation and it will be saved and returned to you when you request the<br>
>       >> resource.<br>
>       >><br>
>       >> Ignoring whether this is a good idea or not (it's done), is the option<br>
>       >> there that i missed - or is there any plans/way to support something like<br>
>       >> this?<br>
>       ><br>
>       ><br>
>       > There's a change in WSME trunk (I don't think we've released it yet) that<br>
>       > allows the schema for a type to be changed after the class is defined. There<br>
>       > isn't any facility for allowing the caller to pass arbitrary data, though.<br>
>       > Part of the point of WSME is to define the inputs and outputs of the API for<br>
>       > validation.<br>
><br>
><br>
>       Is there a plan to release new WSME which includes new type classes?<br>
>       I'd like to try applying these classes to Ceilometer after the release because<br>
>       Ceilometer is the best for showing these classes' usage.<br>
><br>
><br>
><br>
> If you mean the feature I mentioned above, we will release it but I don't think it needs to be used in ceilometer. We<br>
> designed that API so it doesn't change when plugins are installed. The feature was added for nova's requirements, since<br>
> the types of the message payloads aren't known until all of the extensions are loaded.<br>
<br>
</div></div>I guess Ceilometer's BoundedInt can be replaced with wsme's IntegerType if new version<br>
releases.<br>
<a href="https://github.com/openstack/ceilometer/blob/master/ceilometer/api/controllers/v2.py#L85" target="_blank">https://github.com/openstack/ceilometer/blob/master/ceilometer/api/controllers/v2.py#L85</a><br>
<a href="https://github.com/stackforge/wsme/blob/master/wsme/types.py#L146" target="_blank">https://github.com/stackforge/wsme/blob/master/wsme/types.py#L146</a><br>
<br>
I'm sorry if I misunderstand something.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">No, you're right. How about if we wait until after the I2 milestone, to avoid potential gate issues from a new library release during a critical period?</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Doug</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
<br>
Thanks<br>
Ken'ichi Ohmichi<br>
<br>
<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>
</div></div></blockquote></div><br></div></div>