[Buildbot] #3351: ChoiceStringParameter does not call its getChoices function
Buildbot trac
trac at buildbot.net
Wed Sep 2 08:27:33 UTC 2015
#3351: ChoiceStringParameter does not call its getChoices function
-------------------+-----------------------
Reporter: Ham022 | Owner:
Type: defect | Status: new
Priority: minor | Milestone: undecided
Version: master | Keywords:
-------------------+-----------------------
Since moving to the data API I don't think this has ever worked as it used
to be called in the build context function of the web status. This results
in not being able to dynamically generate the choices e.g.
BuildslaveChoiceParameter will just give an empty list.
I tried fixing by overriding getSpec to call getChoices in this base class
but that function doesn't have all the vars needed so ended up in a bit of
a mess passing everything through kwargs. Not sure what the best approach
is from architecture point of view, what do you think?
--
Ticket URL: <http://trac.buildbot.net/ticket/3351>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list