Hans Boldt, a Gramps user for about 9 years, is currently working up a Gramplet to generate WikiTree formatted Gramps biographical data to post to a WikiTree profile.
I started with the “Hello World” gramplet. For my initial “Cosanguinuity” gramplet, I looked at some existing gramplets to get an idea of what to do. From those, I extrapolated some basic principles. You learn pretty quickly to differentiate between handles, references, and primary objects, as well as the importance of naming conventions.
Often, when getting into an unfamiliar area, I write some code, then use the Python debugger to see what objects I have and what methods are available. When stuck, I’ve generally searched through the code to try to find examples of what I want to do.
One specific thing I found confusing was the database signal coding needed to update the gramplet after a change to a person. It appears that there are different ways to do that, but it took some experimenting to get that to work right for me.
I’ve also had to learn Python GtK programming. On-line documentation for that is pretty good, and I can usually find what I’m looking for using Google.
Here’s one specific thing I was looking for. I wanted to get a Note with a specific type. Is there a better way than just iterating through the notes?
Visit his website to see some notes on his journey with Gramps.