libhtml.py: rename hmtl.py to libhtml.py and move to plugins/lib
svn: r12381
This commit is contained in:
parent
8026b9564b
commit
dc80f4a6a6
@ -9,7 +9,8 @@ pkgdata_PYTHON = \
|
|||||||
libcairodoc.py\
|
libcairodoc.py\
|
||||||
libgrampsxml.py\
|
libgrampsxml.py\
|
||||||
libholiday.py\
|
libholiday.py\
|
||||||
libmapservice.py
|
libmapservice.py \
|
||||||
|
libhtml.py
|
||||||
|
|
||||||
pkgpyexecdir = @pkgpyexecdir@/plugins/lib
|
pkgpyexecdir = @pkgpyexecdir@/plugins/lib
|
||||||
pkgpythondir = @pkgpythondir@/plugins/lib
|
pkgpythondir = @pkgpythondir@/plugins/lib
|
||||||
|
@ -35,6 +35,14 @@ This module exports one class and one function.
|
|||||||
|
|
||||||
__all__ = ['Html','newpage']
|
__all__ = ['Html','newpage']
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# GRAMPS modules
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from gen.plug import PluginManager, Plugin
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Constants
|
# Constants
|
||||||
@ -343,3 +351,16 @@ class Html(list):
|
|||||||
else:
|
else:
|
||||||
self.insert(0, doctype)
|
self.insert(0, doctype)
|
||||||
|
|
||||||
|
# ------------------------------------------
|
||||||
|
#
|
||||||
|
# Register Plugin
|
||||||
|
#
|
||||||
|
# -------------------------------------------
|
||||||
|
PluginManager.get_instance().register_plugin(
|
||||||
|
Plugin(
|
||||||
|
name = __name__,
|
||||||
|
description = _("Manages an HTML DOM tree."),
|
||||||
|
module_name = __name__
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
@ -7,8 +7,7 @@ pkgdatadir = $(datadir)/@PACKAGE@/plugins/webreport
|
|||||||
|
|
||||||
pkgdata_PYTHON = \
|
pkgdata_PYTHON = \
|
||||||
NarrativeWeb.py \
|
NarrativeWeb.py \
|
||||||
WebCal.py \
|
WebCal.py
|
||||||
html.py
|
|
||||||
|
|
||||||
pkgpyexecdir = @pkgpyexecdir@/plugins/webreport
|
pkgpyexecdir = @pkgpyexecdir@/plugins/webreport
|
||||||
pkgpythondir = @pkgpythondir@/plugins/webreport
|
pkgpythondir = @pkgpythondir@/plugins/webreport
|
||||||
|
@ -68,7 +68,7 @@ from DateHandler import displayer as _dd
|
|||||||
from DateHandler import parser as _dp
|
from DateHandler import parser as _dp
|
||||||
|
|
||||||
import libholiday
|
import libholiday
|
||||||
from html import Html, newpage
|
from libhtml import Html, newpage
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user