GEPS008: Move src/docgen to src/gen/utils

svn: r19920
This commit is contained in:
Nick Hall 2012-06-25 00:01:40 +00:00
parent a164389c6a
commit cfe03f3b60
11 changed files with 18 additions and 9 deletions

View File

@ -120,6 +120,7 @@ src/gen/plug/report/Makefile
src/gen/proxy/Makefile src/gen/proxy/Makefile
src/gen/simple/Makefile src/gen/simple/Makefile
src/gen/utils/Makefile src/gen/utils/Makefile
src/gen/utils/docgen/Makefile
src/gui/Makefile src/gui/Makefile
src/gui/editors/Makefile src/gui/editors/Makefile
src/gui/editors/displaytabs/Makefile src/gui/editors/displaytabs/Makefile
@ -136,7 +137,6 @@ src/gui/selectors/Makefile
src/gui/views/Makefile src/gui/views/Makefile
src/gui/views/treemodels/Makefile src/gui/views/treemodels/Makefile
src/gui/widgets/Makefile src/gui/widgets/Makefile
src/docgen/Makefile
src/plugins/Makefile src/plugins/Makefile
src/plugins/docgen/Makefile src/plugins/docgen/Makefile
src/plugins/drawreport/Makefile src/plugins/drawreport/Makefile

View File

@ -218,6 +218,12 @@ src/gen/utils/image.py
src/gen/utils/referent.py src/gen/utils/referent.py
src/gen/utils/tree.py src/gen/utils/tree.py
# gen.utils.docgen
src/gen/utils/docgen/__init__.py
src/gen/utils/docgen/CSVTab.py
src/gen/utils/docgen/ODSTab.py
src/gen/utils/docgen/TabbedDoc.py
# gui - GUI code # gui - GUI code
src/gui/__init__.py src/gui/__init__.py
src/gui/autocomp.py src/gui/autocomp.py

View File

@ -4,7 +4,6 @@
SUBDIRS = \ SUBDIRS = \
cli \ cli \
data \ data \
docgen \
gen \ gen \
gui \ gui \
images \ images \

View File

@ -4,6 +4,8 @@
# but that is not necessarily portable. # but that is not necessarily portable.
# If not using GNU make, then list all .py files individually # If not using GNU make, then list all .py files individually
SUBDIRS = docgen
pkgpythondir = $(datadir)/@PACKAGE@/gen/utils pkgpythondir = $(datadir)/@PACKAGE@/gen/utils
pkgpython_PYTHON = \ pkgpython_PYTHON = \

View File

@ -32,7 +32,7 @@ import csv
# gramps modules # gramps modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from docgen import TabbedDoc from TabbedDoc import *
class CSVTab(TabbedDoc): class CSVTab(TabbedDoc):

View File

@ -3,19 +3,21 @@
# Use GNU make's ':=' syntax for nice wildcard use. # Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually # If not using GNU make, then list all .py files individually
docgendir=$(prefix)/share/gramps/docgen pkgpythondir = $(datadir)/@PACKAGE@/gen/utils/docgen
docgen_PYTHON = \ pkgpython_PYTHON = \
__init__.py \ __init__.py \
CSVTab.py \ CSVTab.py \
ODSTab.py \ ODSTab.py \
TabbedDoc.py TabbedDoc.py
pkgpyexecdir = @pkgpyexecdir@/gen/utils/docgen
# Clean up all the byte-compiled files # Clean up all the byte-compiled files
MOSTLYCLEANFILES = *pyc *pyo MOSTLYCLEANFILES = *pyc *pyo
GRAMPS_PY_MODPATH = "../" GRAMPS_PY_MODPATH = "../../../"
pycheck: pycheck:
(export PYTHONPATH=$(GRAMPS_PY_MODPATH); \ (export PYTHONPATH=$(GRAMPS_PY_MODPATH); \
pychecker $(docgen_PYTHON)); pychecker $(pkgpython_PYTHON));

View File

@ -960,7 +960,7 @@ class ListView(NavigationView):
The output file type is determined by the type variable. The output file type is determined by the type variable.
""" """
from docgen import CSVTab, ODSTab from gen.utils.docgen import CSVTab, ODSTab
ofile = None ofile = None
data_cols = [pair[1] for pair in self.column_order() if pair[0]] data_cols = [pair[1] for pair in self.column_order() if pair[0]]

View File

@ -49,7 +49,7 @@ from gui.filters import build_filter_model
from gen.sort import Sort from gen.sort import Sort
from gen.utils.file import get_unicode_path_from_file_chooser from gen.utils.file import get_unicode_path_from_file_chooser
from gui.utils import ProgressMeter from gui.utils import ProgressMeter
from docgen import ODSTab from gen.utils.docgen import ODSTab
import const import const
from gen.errors import WindowActiveError from gen.errors import WindowActiveError
import gen.datehandler import gen.datehandler