[Qgis-developer] SIP API Update merged. Attention plugin authors

Nathan Woodrow madmanwoo at gmail.com
Sun Jun 9 07:02:57 PDT 2013


Victor,

Which code is returning a QVariant null?

- Nathan


On Mon, Jun 10, 2013 at 12:01 AM, Victor Olaya <volayaf at gmail.com> wrote:

> I am checking the SEXTANTE adaptation to the new SIP API, and
> everything is fine. The only "strange" thing that I found is how null
> values are handled when they appear in a vector layer field. It seems
> that, in that case, a QVariant is still returned (particularly a
> QPyNullVariant object). Wouldn't it be better to return a Python None
> instead, so in all cases Python values are returned?
>
> Cheers
>
> 2013/6/9 Richard Duivenvoorde <rdmailings at duif.net>:
> > On 09-06-13 10:47, Nathan Woodrow wrote:
> >>
> >> Technically this can be done for smaller plugins like Borys said.
> >>   Something like:
> >
> >
> > I think only for VERY small plugins. In the (not so very big plugins) I
> do
> > it was already getting messy.
> >
> > And by the why, a big thank you for all the great work and decisions
> being
> > done lately! I really think 2.0 will be great \o/
> >
> > Richard
> >
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130610/1dc34ac3/attachment.html>


More information about the Qgis-developer mailing list