2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* 143 files * test/try_tree_model.py * windows/nsis/gcheck.py imports cleanup svn: r10055
This commit is contained in:
@@ -18,20 +18,26 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id: $
|
||||
# $Id$
|
||||
|
||||
import os
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Standard Python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import csv
|
||||
import codecs
|
||||
|
||||
from gettext import gettext as _
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# gramps modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from docgen import TabbedDoc
|
||||
|
||||
import TabbedDoc
|
||||
|
||||
class CSVTab(TabbedDoc.TabbedDoc):
|
||||
class CSVTab(TabbedDoc):
|
||||
|
||||
def __init__(self, columns):
|
||||
TabbedDoc.TabbedDoc.__init__(self, columns)
|
||||
TabbedDoc.__init__(self, columns)
|
||||
self.filename = None
|
||||
self.f = None
|
||||
self.dlist = []
|
||||
|
@@ -28,7 +28,6 @@
|
||||
# Python modules
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
from math import radians
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@@ -38,7 +37,6 @@ from math import radians
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from ReportBase import ReportUtils
|
||||
##rgb_color = ReportUtils.rgb_color
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@@ -54,7 +52,6 @@ log = logging.getLogger(".CairoDoc")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
import cairo
|
||||
import pango
|
||||
import pangocairo
|
||||
|
||||
|
@@ -60,6 +60,7 @@ log = logging.getLogger(".GtkPrint")
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
from gtk import glade
|
||||
import cairo
|
||||
|
||||
if gtk.pygtk_version < (2, 10, 0):
|
||||
@@ -200,7 +201,7 @@ class PrintPreview:
|
||||
glade_file = os.path.join(os.path.dirname(__file__),
|
||||
'gtkprintpreview.glade')
|
||||
|
||||
glade_xml = gtk.glade.XML(glade_file, 'window', 'gramps')
|
||||
glade_xml = glade.XML(glade_file, 'window', 'gramps')
|
||||
self._window = glade_xml.get_widget('window')
|
||||
#self._window.set_transient_for(parent)
|
||||
|
||||
|
@@ -5,8 +5,9 @@
|
||||
docgendir=$(prefix)/share/gramps/docgen
|
||||
|
||||
docgen_PYTHON = \
|
||||
__init__.py\
|
||||
AsciiDoc.py\
|
||||
CairoDoc.py\
|
||||
CairoDoc.py\
|
||||
CSVTab.py\
|
||||
HtmlDoc.py\
|
||||
LaTeXDoc.py\
|
||||
|
@@ -36,7 +36,7 @@ from gettext import gettext as _
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from SpreadSheetDoc import *
|
||||
from docgen import SpreadSheetDoc
|
||||
|
||||
import const
|
||||
|
||||
|
@@ -26,7 +26,6 @@
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from math import pi, cos, sin
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
@@ -29,7 +29,6 @@
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
import os
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -37,9 +37,6 @@ import pango
|
||||
#------------------------------------------------------------------------
|
||||
import BaseDoc
|
||||
from PluginUtils import register_text_doc
|
||||
import const
|
||||
import Errors
|
||||
import Utils
|
||||
import ManagedWindow
|
||||
|
||||
try:
|
||||
|
27
src/docgen/__init__.py
Normal file
27
src/docgen/__init__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2008 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
from TabbedDoc import TabbedDoc
|
||||
from ODSTab import ODSTab
|
||||
from TextBufDoc import TextBufDoc
|
||||
from CSVTab import CSVTab
|
||||
from SpreadSheetDoc import SpreadSheetDoc
|
Reference in New Issue
Block a user