libhtml.py: rename hmtl.py to libhtml.py and move to plugins/lib

svn: r12381
This commit is contained in:
Gerald Britton 2009-03-23 14:42:37 +00:00
parent 8026b9564b
commit dc80f4a6a6
4 changed files with 25 additions and 4 deletions

View File

@ -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

View File

@ -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__
)
)

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------
#