I guess, something like that :
from gen.plug.docgen import IndexMark
The routine the actually creates the report. At this point, the document is opened and ready for writing.
# Write the title line. Set in INDEX marker so that this section will be identified as a major category if this is included in a Book report.
title = self._('Blabla Report')
mark = IndexMark(title, INDEX_TYPE_TOC, 1)
I tried to add some features available for textual reports on : http://gramps-addons.svn.sourceforge.net/viewvc/gramps-addons/branches/gramps32/contrib/RepositoriesReport/RepositoriesReportAlt.py
It means :
* private proxy
* Book index
* translation selection
Most are present on one or few textual reports (core).
I hope this could help.
--- En date de : Mer 28.7.10, Doug Blank <doug.blank@...> a écrit :
> De: Doug Blank <doug.blank@...>
> Objet: Re: [Gramps-devel] third party reports in the book report
> À: "Paul Franklin" <pf.98052@...>
> Cc: "Craig J. Anderson" <ander882@...>, gramps-devel@...
> Date: Mercredi 28 juillet 2010, 2h35
> On Tue, Jul 27, 2010 at 5:31 PM, Paul
> Franklin <pf.98052@...>
> > No, I believe Craig means an actual "third-party"
> report, which
> > is contained in the file Graphical32.zip, which is
> mentioned on
> > http://gramps-project.org/wiki/index.php?title=3.2_Addons
> Oh, well then that is easy!
> > I would really really really like to use his
> Descend2.py report,
> > but embedded in a Book Report so I can use it more
> than once.
> > As written, I could not get it to appear in the list
> of Book Report
> > choices, which is why I sent him email asking if it
> was possible.
> > I subsequently discovered (by trial and error) that if
> I modified a
> > line in the file Graphical.gpr.py, which is included
> in that zip file,
> > that the Descend2.py now appeared in the Book Report's
> list of
> > possible reports to include, even though it was still
> in my personal
> > ~/.gramps/gramps32/plugins directory.
> > But I do not know enough to know if the change I made
> is the right
> > one, or just happens (somehow) to work, since I don't
> know what it
> > is really specifying. Anyway, I changed the line
> > plg.report_modes = [REPORT_MODE_GUI] #,
> REPORT_MODE_BKI, REPORT_MODE_CLI
> > to instead say
> > plg.report_modes = [REPORT_MODE_GUI, REPORT_MODE_BKI,
> > and then the related add-on plugin was in the Book
> > possible-reports window, and I could then use it.
> > But as I say, I don't know if that is the
> > way to get it to work, since I am basically stumbling
> > But I would really really really like to use that
> report!!! It is
> > a wonderful report and I really like all the features
> it has.
> > But I am really nervous about changing something I
> > understand, and would therefore like it done the
> "official way."
> Using the search page of the documentation wiki:
> I looked for one of the modes that you mentioned,
> REPORT_MODE_BKI and
> found a page that says this:
> "There are arguments for the report class and options
> class. The
> report_modes argument is set to the bit-wise sum (the OR
> statement) of
> all three possible modes: GUI (standalone report generated
> from GRAMPS
> running in a window), BKI (book item), and CLI (command
> interface). This means that the report will be available in
> all three
> modes. The rest should be self-explanatory."
> So, yes, the official way (and, in fact, the only way) is
> to include
> REPORT_MODE_BKI in the modes, and that will make it
> available in the
> book selection utility.
> > Hope this helps.
> > On 7/27/10, Doug Blank <doug.blank@...>
> >> On Tue, Jul 27, 2010 at 4:13 PM, Craig J. Anderson
> >> wrote:
> >>> I have created a third party report that a
> user wants added to the book
> >>> report?
> >>> Is this possible? And how would we be able
> to do it?
> >> Craig,
> >> Do you mean that you have something like a text
> file or PDF that you
> >> would like to have included in the output of the
> book report?
> >> If so, then the easiest method might be to create
> a PDF of the book
> >> report, and then use another program to edit and
> insert the external
> >> documents.
> >> Or do you mean something else?
> >> -Doug
> >>> thanks.
> >>> Craig A.
> The Palm PDK Hot Apps Program offers developers who use
> Plug-In Development Kit to bring their C/C++ apps to Palm
> for a share
> of $1 Million in cash or HP Products. Visit us here for
> more details:
> Gramps-devel mailing list