<div dir="ltr">Victor,<div><br></div><div>Which code is returning a QVariant null?</div><div><br></div><div>- Nathan<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 10, 2013 at 12:01 AM, Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am checking the SEXTANTE adaptation to the new SIP API, and<br>
everything is fine. The only "strange" thing that I found is how null<br>
values are handled when they appear in a vector layer field. It seems<br>
that, in that case, a QVariant is still returned (particularly a<br>
QPyNullVariant object). Wouldn't it be better to return a Python None<br>
instead, so in all cases Python values are returned?<br>
<br>
Cheers<br>
<br>
2013/6/9 Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>>:<br>
<div class="HOEnZb"><div class="h5">> On 09-06-13 10:47, Nathan Woodrow wrote:<br>
>><br>
>> Technically this can be done for smaller plugins like Borys said.<br>
>> Something like:<br>
><br>
><br>
> I think only for VERY small plugins. In the (not so very big plugins) I do<br>
> it was already getting messy.<br>
><br>
> And by the why, a big thank you for all the great work and decisions being<br>
> done lately! I really think 2.0 will be great \o/<br>
><br>
> Richard<br>
><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br></div></div></div>