[Qgis-developer] SIP API Update

Jo winfixit at gmail.com
Thu May 30 02:07:48 PDT 2013


2013/5/30 Sandro Santilli <strk at keybit.net>

> On Thu, May 30, 2013 at 04:12:15PM +1000, Nathan Woodrow wrote:
>
> > If you are not aware of what benefits the SIP API update will bring here
> is
> > a quick example:
> >
> > Before:
> >
> > >>> str(yourlineedit.text().toString())
> > 'Hello World'
> > >>> feature["column"].toInt()[0]
> > 100
> >
> > After
> >
> > >>> yourlineedit.text()
> > 'Hello World'
> > >>> feature["column"]
> > 1000
> >
> > It will make life for us and plugin authors a hell of a lot easier.
>
> Plugin authors want to maintain support for multiple qgis versions,
> so changing an API is really only _more_ work, not _less_.
>
> Is there any facility to deal with that ?
>

Does the old way of doing it stop working? What I'm a bit  worried about is
that the result is 100 before and 1000 after, but I guess that's a typo?

It seems the code will be cleaner and more concise, that's certainly a good
thing.

Jo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130530/9c108863/attachment.html>


More information about the Qgis-developer mailing list