commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r9050 - trunk/gnue-forms/src/uidrivers/html


From: jan
Subject: [gnue] r9050 - trunk/gnue-forms/src/uidrivers/html
Date: Sun, 19 Nov 2006 18:58:57 -0600 (CST)

Author: jan
Date: 2006-11-19 18:58:56 -0600 (Sun, 19 Nov 2006)
New Revision: 9050

Modified:
   trunk/gnue-forms/src/uidrivers/html/GFServer.py
Log:
Fix some issues on unix


Modified: trunk/gnue-forms/src/uidrivers/html/GFServer.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/html/GFServer.py     2006-11-20 00:43:43 UTC 
(rev 9049)
+++ trunk/gnue-forms/src/uidrivers/html/GFServer.py     2006-11-20 00:58:56 UTC 
(rev 9050)
@@ -40,6 +40,8 @@
 from gnue.forms.GFInstance import GFInstance
 from gnue.common.apps import GConfig, errors
 
+from types import UnicodeType
+
 try:
     from simplejson import JSONEncoder # JSONDecoder
 except:
@@ -310,9 +312,12 @@
                 print " You need dojo (www.dojotoolkit.org) to use the html 
uidriver."
                 print " Please install dojo 4.0 or above on your computer and 
add the "
                 print " the install path to gnue.conf: 'htmlui_include_path = 
<path>'"
+                print " Currently searching for dojo.js at: '%s' " % realpath
                 print 
"****************************************************************"
             
     def push_content(self, response, content_type="text/html"):
+        if type(response)==UnicodeType:
+            response.encode('utf-8')
         self.send_response (200, flush = False)
         self.send_header ("Content-type", content_type, flush = False)
         self.send_header ("Content-length", str (len (response)), flush = 
False)





reply via email to

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