64
edits
Changes
From Gramps
→Обзор: Translated into Russian
==Обзор==
===report.gpr.py===
;Registration statement Код регистрации : This initializes the report by a single call to the Этот код, инициализирующий отчет, состоит из единственного вызова функции <tt>[https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug._pluginreg.register register()]</tt> function. It is trivialЭто простое действие, but without it your report will not become available to без которого отчет, как бы хорош он не был, не будет доступен в Gramps, even if it is otherwise perfectly written.
* [[Report-writing_tutorialУчебник_по_написанию_отчетов#Registering_the_reportРегистрация_отчета]]
===report.py===
;Код класса Report class : This is the code that takes data from the Содержит код, который получает данные из базы данных Gramps database and organizes it into the document structureи организует их в структуру документа. This structure can later be printedЭта структура может быть затем напечатана, viewed, or written into a file in a variety of formatsпросмотрена или записана в файл в различных форматах. This class uses the Этот класс использует интерфейс [https://gramps-project.org/docs/gen/gen_plug.html#module-gramps.gen.plug._docgenplugin docgen] interface to abstract away the output format detailsчтобы абстрагироваться от формата вывода. ;Код класса Options class : This is the code that provides means to obtain options necessary for the report using a variety of available mechanismsСодержит код, дающий возможность задать необходимые для отчёта параметры, используя множество различных механизмов передачи параметров.
==Интерфейс создания документа==