Author: ks156
Date: 2009-09-14 14:20:09 +0200 (Mon, 14 Sep 2009)
New Revision: 5378

Modified:
   
software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Fixed a bug with the gadget creation.


Modified: 
software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
       2009-09-14 11:41:51 UTC (rev 5377)
+++ 
software_suite_v3/smart-core/smart-server/branches/user_mode/util/applicationserver/gadget/GadgetGenerator.py
       2009-09-14 12:20:09 UTC (rev 5378)
@@ -442,7 +442,10 @@
         tmpFile = open(os.path.join(tmpRootDir, "help.wiki"), "w")
         tmpFile.write(helpFileContent)
         tmpFile.close()
-        tmpGadgetFile = "gadget_%s.scg" % gadgetUuid
+        if os.name == 'nt':
+            tmpGadgetFile = "gadget_%s.scg" % gadgetUuid
+        else:
+            tmpGadgetFile = "/tmp/gadget_%s.scg" % gadgetUuid
         zout = zipfile.ZipFile(tmpGadgetFile, "w")
         zout.write(os.path.join(tmpRootDir, "gadget.xml"), "gadget.xml")
         zout.write(os.path.join(tmpRootDir, "gadget.png"), "gadget.png")


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to