From: Anthony J. S. <ant...@ie...> - 2006-02-02 19:17:09
|
On Tue, 2005-12-27 at 01:20 -0500, db...@br... wrote: > GRAMPS users, >=20 > I've been hacking on a calendar graphical report using the new interfac= e > with GRAMPS 2.0, and wanted to let you know about it sooner than later. > This time of year I usually print a calendar with all my relatives > birthdays and anniversaries. This year, I really wanted to do it from > GRAMPS. This is my first GRAMPS report, and someone may want to look ov= er > the logic to get spouses. But it works for me. >=20 > You can find some screen dumps and the code here: >=20 > http://emergent.brynmawr.edu/emergent/GrampsCalendarReport >=20 > The report has options to select a filter, the year of the calendar, > living people only, birthdays and/or anniversaries. >=20 > In addition to generating a calendar, this code also has implemented pa= rt > of a proposal to make the report interface a little kinder on the coder= . I > did this to make report writing easier by having Python do all of the > dirty work. This also has the benefit of making the code a little more > modular, and separates the details of the GUI from the details of the > logic of the report. >=20 > In any event, the code builds on the existing report infrastructure, an= d > should run on GRAMPS 2.0. >=20 > Let me know if you have issues or suggestions. >=20 1) Tax day is the 17th this year because the 15th falls on a Sunday. I put the following three lines in holidays.xml. <date name=3D"Income Taxes due" value=3D"*/4/15" type=3D"national" if= =3D"date.weekday().__cmp__(4)-1" /> <date name=3D"Income Taxes due" value=3D"*/4/16" type=3D"national" if= =3D"date.weekday() =3D=3D 0" /> <date name=3D"Income Taxes due" value=3D"*/4/17" type=3D"national" if= =3D"date.weekday() =3D=3D 0" /> Works for the years that I tested 2) For Easter, there is a generic, though complicated, equation at the Naval Observatory: http://aa.usno.navy.mil/faq/docs/easter.html > -Doug >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=C3=8Ck > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users |