From: Adam S. <ad...@pp...> - 2011-09-09 15:00:44
|
On Thu, 2011-09-08 at 13:38 -0700, Brian Matherly wrote: > Adam, > > > >My reporting plugin (FilteredReports) doesn't fill in the filter menu > >with the name of a person (so you get choices like 'Descendants of > >PERSON' instead of a person's name). > > > >Is there any way to get the currently selected person in the GUI? Other > >reporting plugins create a PersonOption widget which allows them to get > >the current person which I can add if there's no other way (but isn't > >really necessary to the plugin). > > > >Just wondering if there was a better way. > > > I would suggest that you *should* add a PersonOption. From the CLI, there is no concept of a "selected" person. So, if there is no way to override the person who is the center of the filter, then your report is useless from the CLI. > > GVRelGraph.py is a good example of a filter with a dependent "person" option. You should follow that example. It looks like every plugin that updates the menu uses PersonOption and as you say, the CLI needs it as well, so that's what I'll do. Thanks for the suggestion. -- Adam Stein @ HCL America Inc. Email: ad...@pp... Disclaimer: Any/All views expressed here have been proven to be my own. [http://www.csh.rit.edu/~adam/] |