From dc80f4a6a660a1c1ae2ec86ef11cc34780d4f166 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Mon, 23 Mar 2009 14:42:37 +0000 Subject: [PATCH] libhtml.py: rename hmtl.py to libhtml.py and move to plugins/lib svn: r12381 --- src/plugins/lib/Makefile.am | 3 ++- .../{webreport/html.py => lib/libhtml.py} | 21 +++++++++++++++++++ src/plugins/webreport/Makefile.am | 3 +-- src/plugins/webreport/WebCal.py | 2 +- 4 files changed, 25 insertions(+), 4 deletions(-) rename src/plugins/{webreport/html.py => lib/libhtml.py} (96%) diff --git a/src/plugins/lib/Makefile.am b/src/plugins/lib/Makefile.am index 98c80551d..4df4a16cc 100644 --- a/src/plugins/lib/Makefile.am +++ b/src/plugins/lib/Makefile.am @@ -9,7 +9,8 @@ pkgdata_PYTHON = \ libcairodoc.py\ libgrampsxml.py\ libholiday.py\ - libmapservice.py + libmapservice.py \ + libhtml.py pkgpyexecdir = @pkgpyexecdir@/plugins/lib pkgpythondir = @pkgpythondir@/plugins/lib diff --git a/src/plugins/webreport/html.py b/src/plugins/lib/libhtml.py similarity index 96% rename from src/plugins/webreport/html.py rename to src/plugins/lib/libhtml.py index a8be043f7..068b07058 100644 --- a/src/plugins/webreport/html.py +++ b/src/plugins/lib/libhtml.py @@ -35,6 +35,14 @@ This module exports one class and one function. __all__ = ['Html','newpage'] +#------------------------------------------------------------------------ +# +# GRAMPS modules +# +#------------------------------------------------------------------------ + +from gen.plug import PluginManager, Plugin + #------------------------------------------------------------------------ # # Constants @@ -343,3 +351,16 @@ class Html(list): else: self.insert(0, doctype) +# ------------------------------------------ +# +# Register Plugin +# +# ------------------------------------------- +PluginManager.get_instance().register_plugin( +Plugin( + name = __name__, + description = _("Manages an HTML DOM tree."), + module_name = __name__ + ) +) + diff --git a/src/plugins/webreport/Makefile.am b/src/plugins/webreport/Makefile.am index bbd46d955..a48df070f 100644 --- a/src/plugins/webreport/Makefile.am +++ b/src/plugins/webreport/Makefile.am @@ -7,8 +7,7 @@ pkgdatadir = $(datadir)/@PACKAGE@/plugins/webreport pkgdata_PYTHON = \ NarrativeWeb.py \ - WebCal.py \ - html.py + WebCal.py pkgpyexecdir = @pkgpyexecdir@/plugins/webreport pkgpythondir = @pkgpythondir@/plugins/webreport diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 0aefca332..29980cba1 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -68,7 +68,7 @@ from DateHandler import displayer as _dd from DateHandler import parser as _dp import libholiday -from html import Html, newpage +from libhtml import Html, newpage #------------------------------------------------------------------------ #