Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Web Connection menu in all list views #2008

Merged

Conversation

Nick-Hall
Copy link
Member

At present the Web Connection menu is restricted to the person list views. Removing this restriction would allow further development of the Web Connection functionality in addons.

This type of change would not normally be allowed in a maintenance branch, but since the change is small we could possibly consider it in this case.

@@ -1066,7 +1065,7 @@ def _button_press(self, obj, event):
self.at_popup_menu.append(qr_ui)

# Web Connects
if self.QR_CATEGORY == CATEGORY_QR_PERSON:
if self.QR_CATEGORY > -1:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is -1? Is this leaking some implementation details about categories? Is there a way to:

Suggested change
if self.QR_CATEGORY > -1:
if self.QR_CATEGORY != NO_CATEGORY_ALLOWED:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this line from the quick reports section above, but I'll see if there is an easy way to improve this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the code for both the quick reports and web connects to use CATEGORY_QR_MISC.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CATEGORY_QR_MISC quickviews are a challenge to document in the wiki.

Can you suggest a workflow for discovering where the feature is used? Maybe we can compose a "Usage" section caveat?

(Such as: "This QuickView is not called directly by a GUI control. Instead, it is a "helper" for other features and the list of places where it is used is constantly changing. A partial list follows. Click here to search GitHub for modules that currently call the ____ QuickView.")

Copy link
Member

@dsblank dsblank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than one comment, LGTM

@Nick-Hall Nick-Hall merged commit 8eaa720 into gramps-project:maintenance/gramps60 Mar 11, 2025
2 checks passed
@Nick-Hall Nick-Hall deleted the web-connect branch March 11, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants