[users at bb.net] how to access DbConfig from www plugins?

Pierre Tardy tardyp at gmail.com
Tue Jan 16 15:37:04 UTC 2018


You can see how buildbot travis is doing that:

https://github.com/buildbot/buildbot_travis/blob/master/buildbot_travis/api.py
https://github.com/buildbot/buildbot_travis/blob/master/buildbot_travis/configurator.py#L303

Regards
Pierre

On Tue, Jan 16, 2018 at 4:30 PM Alexey Demakov <demakov at ispras.ru> wrote:

> Hi all,
>
> I need to store some additional info for my www plugin.
>
> I know how to do it with settings service (bbSettingsService),
> but it uses browser's local storage, I need global solution.
>
> I plan to use DbConfig utility [1] to store my info in buildbot database.
>
> But I can't figure out how to transfer info between python backend and
> js www plugin.
>
> Do I need to implement additional endpoint and use it like data service
> does?
>
> May be I overlooked and endpoint to use DbConfig already implemented?
>
> What is the simplest way to store info from www plugin?
>
> Thanks,
> Alexey
>
> [1] http://docs.buildbot.net/latest/manual/cfg-dbconfig.html
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20180116/116e891f/attachment.html>


More information about the users mailing list