commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r6235 - trunk/gnue-forms/src


From: jcater
Subject: r6235 - trunk/gnue-forms/src
Date: Tue, 31 Aug 2004 15:31:49 -0500 (CDT)

Author: jcater
Date: 2004-08-31 15:31:48 -0500 (Tue, 31 Aug 2004)
New Revision: 6235

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Added a runReport option to the trigger namespace.
Currently, you need to pass all parameters to the report, as the report won't 
prompt for missing ones.



Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py      2004-08-31 11:41:56 UTC (rev 6234)
+++ trunk/gnue-forms/src/GFForm.py      2004-08-31 20:31:48 UTC (rev 6235)
@@ -152,6 +152,9 @@
                               'runForm':{'function':self.triggerRunForm,
                                          'global': True,
                                          } ,
+                              'runReport':{'function':self.triggerRunReport,
+                                         'global': True,
+                                         } ,
                               
'activateDialog':{'function':self.triggerActivateDialog,
                                                 'global': True,
                                                 } ,
@@ -1026,6 +1029,30 @@
     instance.activate()
 
   #
+  # triggerRunForm
+  #
+  # Allows the trigger to launch a new instance
+  # of gnue-forms running a different form.
+  #
+  def triggerRunReport(self, reportName, parameters={}, **parms):
+    """
+      These roughly correspond to the ./gnue-reports options
+              destination
+              destinationType
+              destinationOptions (dict)
+              filter
+              filterOptions (dict)
+              parameters (dict)
+              sortoption
+              includeStructuralComments
+              omitGNUeXML
+    """
+    from gnue.reports.base.GREngine import GREngine
+    from gnue.reports.base import GRFilters, GRExceptions
+    rep_engine = GREngine(self._instance.connections)
+    rep_engine.processReport(reportfile, parameters=parameters, **parms)
+
+  #
   # triggerActivateDialog
   #
   # Allows the trigger to launch a standard or custom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]