[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9281 - trunk/gnue-reports/src/client
From: |
reinhard |
Subject: |
[gnue] r9281 - trunk/gnue-reports/src/client |
Date: |
Fri, 12 Jan 2007 06:19:05 -0600 (CST) |
Author: reinhard
Date: 2007-01-12 06:19:05 -0600 (Fri, 12 Jan 2007)
New Revision: 9281
Modified:
trunk/gnue-reports/src/client/GRRunUI.py
Log:
Use new GFInstance function to run form.
Modified: trunk/gnue-reports/src/client/GRRunUI.py
===================================================================
--- trunk/gnue-reports/src/client/GRRunUI.py 2007-01-12 12:16:47 UTC (rev
9280)
+++ trunk/gnue-reports/src/client/GRRunUI.py 2007-01-12 12:19:05 UTC (rev
9281)
@@ -104,9 +104,8 @@
# Create the form's code on the fly and put it into an instance
formBuffer = self.__buildForm ()
instance = self.gfinstance.GFInstance (self, self.connections,
- self.uimodule, True, self.userParameters)
- instance.addFormFromFilehandle (formBuffer)
- instance.activate()
+ self.uimodule, True)
+ instance.run_from_buffer(formBuffer, self.userParameters)
# Now iterate through the parameters dictionary and fetch our 'private'
# values, also remove them from userParameters
@@ -255,13 +254,9 @@
# Prepare a buffer with the form's code and set it's position to the start
stream = string.join (code, "\n")
- result = StringIO.StringIO ()
- result.write (stream.encode ('utf-8'))
- result.seek (0, 0)
+ return stream.encode ('utf-8')
- return result
-
# ---------------------------------------------------------------------------
# Translate the report parameters dictionary into a sequence
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9281 - trunk/gnue-reports/src/client,
reinhard <=