<div dir="ltr">Ok I'll check it out and see if it can be converted.<div><br></div><div style>-- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 10, 2013 at 12:19 AM, Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias.kuhn@gmx.ch" target="_blank">matthias.kuhn@gmx.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Son 09 Jun 2013 16:02:57 CEST, Nathan Woodrow wrote:<br>
> Victor,<br>
><br>
> Which code is returning a QVariant null?<br>
<br>
</div>feat['myAttribute']<br>
returns QPyNullVariant for all features which have a NULL value in the<br>
field myAttribute.<br>
<br>
None would work for me as well. But I'm not sure, why PyQt introduced<br>
this new type. Maybe there is a reason?<br>
<br>
Matthias<br>
<div class="im"><br>
><br>
> - Nathan<br>
><br>
><br>
> On Mon, Jun 10, 2013 at 12:01 AM, Victor Olaya <<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:volayaf@gmail.com">volayaf@gmail.com</a>>> wrote:<br>
><br>
> 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>> <mailto:<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>>>:<br>
<div class="im">> > 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<br>
> 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<br>
> 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>
</div>> <mailto:<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>><br>
<div class="im">> > <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>
</div>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>><br>
<div class="HOEnZb"><div class="h5">> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
><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>
<br>
</div></div></blockquote></div><br></div>