[QGIS-Developer] additional qgis news feed
Nyall Dawson
nyall.dawson at gmail.com
Fri Nov 13 15:40:53 PST 2020
On Fri, 13 Nov 2020 at 20:15, <michal.wloga at envirosolutions.pl> wrote:
>
> Hello Devs,
>
>
>
> Iâm trying to append to QGIS News panel my own messages using python.
>
> I have already set up backend using https://github.com/elpaso/qgis-feed
>
> It works: https://qgisfeed.envirosolutions.pl/
>
> I canât find out how to fetch it and add to QGIS panel.
It's not supported -- you can't do this.
When the news panel was introduced this was one of the decisions made,
with the rationale that we don't want to give plugins anyway to force
news items onto our users or override the default feed. That just
opens the door for spammy plugins which would negate the whole purpose
of the news feed in the first place.
Nyall
>
>
>
> Iâm fetching something from my source:
>
>
>
> parser = QgsNewsFeedParser(QUrl("https://qgisfeed.envirosolutions.pl/"))
>
> parser.fetch()
>
> parser.entries()
>
> [<qgis._core.QgsNewsFeedParser.Entry object at 0x0000025A5A3C59D8>, <qgis._core.QgsNewsFeedParser.Entry object at 0x0000025A5A3C5AF8>]
>
>
>
> Iâm fetching also from feed.qgis.org:
>
>
>
> parser2 = QgsNewsFeedParser(QUrl("https://feed.qgis.org/"))
>
> parser2.fetch()
>
> parser2.entries()
>
> [<qgis._core.QgsNewsFeedParser.Entry object at 0x0000021B5C1D1168>]
>
>
>
> But I need to add it somehow to QGIS interface. How can I do this?
>
> Regards,
>
> EnviroSolutions Sp. z o. o.
> MichaÅ WÅoga
> coo at envirosolutions.pl
> www.envirosolutions.pl
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the QGIS-Developer
mailing list