daboide Commit
Revision 230
Date: 2005-11-10 09:10:14 -0800 (Thu, 10 Nov 2005)
Author: paul

Changed:
U   trunk/wizards/AppWizard/spec-FrmReportBase.py

Log:
Moved the dReportWriter import into the classdef to avoid dependency issues
if reportlab isn't installed.


Diff:
Modified: trunk/wizards/AppWizard/spec-FrmReportBase.py
===================================================================
--- trunk/wizards/AppWizard/spec-FrmReportBase.py       2005-11-09 23:41:56 UTC 
(rev 229)
+++ trunk/wizards/AppWizard/spec-FrmReportBase.py       2005-11-10 17:10:14 UTC 
(rev 230)
@@ -1,11 +1,14 @@
 import dabo.ui
-from dabo.dReportWriter import dReportWriter
 import dabo.lib.reportUtils as reportUtils
 
 
 class FrmReportBase(dabo.ui.dDialog):
 
        def initProperties(self):
+               ## Do this import here: in case prerequisites aren't installed, 
the app 
+               ## will still start.
+               from dabo.dReportWriter import dReportWriter
+
                if self.ReportName:
                        self.Caption = self.ReportName
                else:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to