Update of /cvsroot/pythonreports/PythonReports/PythonReports
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25373
Modified Files:
__init__.py
Log Message:
all API exports moved to the api module
Index: __init__.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/__init__.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** __init__.py 3 Nov 2006 10:35:26 -0000 1.3
--- __init__.py 22 Jul 2010 06:07:37 -0000 1.4
***************
*** 1,15 ****
"""PythonReports, Python reporting engine
- This module provides user interface to PythonReports.
- It exports modules, functions and classes needed to
- build a report and format or display report printout.
-
- Note: loading all available GUI modules at once
- may be convenient but is quite time- and memory-
- consuming. Users are encouraged to import separate
- printout rendering modules directly.
-
"""
"""History:
03-nov-2006 [als] import __version__ and __date__ from the version module
01-nov-2006 [als] fix: Builder not imported
--- 1,7 ----
"""PythonReports, Python reporting engine
"""
"""History:
+ 22-jul-2010 [als] all API exports moved to the api module
03-nov-2006 [als] import __version__ and __date__ from the version module
01-nov-2006 [als] fix: Builder not imported
***************
*** 18,59 ****
"""
- __all__ = [
- "template", "load_template",
- "printout", "load_printout",
- "Builder",
- ]
-
- from PythonReports import template, printout
- from PythonReports.template import load as load_template
- from PythonReports.printout import load as load_printout
- from PythonReports.builder import Builder
from PythonReports.version import *
- try:
- from PythonReports import pdf
- from PythonReports.pdf import PdfWriter, write as write_pdf
- except ImportError:
- pass
- else:
- __all__.extend(("pdf", "PdfWriter", "write_pdf"))
-
- try:
- from PythonReports import Tk
- from PythonReports.Tk import PreviewWidget as TkPreviewWidget
- from PythonReports.Tk import PreviewWindow as TkPreviewWindow
- except ImportError:
- pass
- else:
- __all__.extend(("Tk", "TkPreviewWidget", "TkPreviewWindow"))
-
- try:
- from PythonReports import wxPrint
- from PythonReports.wxPrint import Printout as wxPrintout
- from PythonReports.wxPrint import Preview as wxPreview
- from PythonReports.wxPrint import PrintApp as wxPrintApp
- except ImportError:
- pass
- else:
- __all__.extend(("wxPrint", "wxPrintout", "wxPreview", "wxPrintApp"))
-
# vim: set et sts=4 sw=4 :
--- 10,14 ----
|