Where are these QuickViews in the interface?

While trying to add help-urls to the built-in plugins registries, I discovered 3 quickviews that I cannot guess how to access. There aren’t corresponding categories where a Context Menu can be raised.

One is in a category=CATEGORY_QR_DATE and the other 2 are in category=CATEGORY_QR_MISC.

# ------------------------------------------------------------------------
#
# Age on Date
#
# ------------------------------------------------------------------------

register(
    QUICKREPORT,
    id="ageondate",
    name=_("Age on Date"),
    description=_("Display people and ages on a particular date"),
    version="1.0",
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname="ageondate.py",
    authors=["Douglas Blank"],
    authors_email=["dblank@cs.brynmawr.edu"],
    category=CATEGORY_QR_DATE,
    runfunc="run",
    help_url = _(""),
)

# ------------------------------------------------------------------------
#
# Filter
#
# ------------------------------------------------------------------------

register(
    QUICKREPORT,
    id="filterbyname",
    name=_("Filter"),
    description=_("Display filtered data"),
    version="1.0",
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname="filterbyname.py",
    authors=["Douglas Blank"],
    authors_email=["dblank@cs.brynmawr.edu"],
    category=CATEGORY_QR_MISC,
    runfunc="run",
    help_url = _(""),
)

# ------------------------------------------------------------------------
#
# Attribute Match
#
# ------------------------------------------------------------------------

register(
    QUICKREPORT,
    id="attribute_match",
    name=_("Attribute Match"),
    description=_("Display people with same attribute."),
    version="1.0",
    gramps_target_version=MODULE_VERSION,
    status=STABLE,
    fname="attributematch.py",
    authors=["Douglas Blank"],
    authors_email=["dblank@cs.brynmawr.edu"],
    category=CATEGORY_QR_MISC,
    runfunc="run",
    help_url = _(""),

Ah, yes. These are “quick reports” that are called directly from other gramplets. (I could only see this by looking through the code).

Some starts for documentation:

  1. ageondate.py - used in the “Age on Date” gramplet; shows all matching people in a table and their ages on a particular date. Useful for finding people based on partial information (like a name and a high school graduation date, for example)

  2. attributematch.py - in the “Attributes” gramplet, if you double-click on an attribute, you’ll see a quick report showing all matching that attribute

  3. filterbyname.py - in the “Age Stats” gramplet, double-clicking an age range will show all of the people in that range

Let me know if you have further questions!

-Doug

Welcome home Doug! How does life in the Machine Learning sector compare to the Higher Ed sector?

I was flummozed by the kneejerk responses against efforts to optimize or cost-reduce proceses when temporarily moving from the private business sector to a civil servant in local government.

Welcome home Doug!

Thank you! Glad to be back :smile:

How does life in the Machine Learning sector compare to the Higher Ed sector?

Well, I was very lucky to join a startup focused on creating tools for ML management, and join as “Head of Research.” And working (mostly) in Python. Some things aren’t that different. But no more grading, and I don’t get to stand in the front of class and talk at people as often :joy_cat:

Yeah, automation (and AI) can create some jerking knees, no doubt.

1 Like

Stubbed out a wiki section for the Miscellaneous Quickviews. Can you suggest a way to search for instances of FilterByName Quickviews being called by gramplets?

I want to link examples of how parameters are be passed. And is there an example of the “kwargs” keyword arguments?

Some gramplets call more directly, Others Import from the grampletpane

from gramps.gui.plug.quick import run_quick_report_by_name