[Yt-svn] yt-commit r525 - trunk/yt/reason

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Jun 3 14:35:28 PDT 2008


Author: mturk
Date: Tue Jun  3 14:35:27 2008
New Revision: 525
URL: http://yt.spacepope.org/changeset/525

Log:
Fix for projection data object addition and for unicode in file dialogs



Modified:
   trunk/yt/reason/App.py
   trunk/yt/reason/Notebook.py

Modified: trunk/yt/reason/App.py
==============================================================================
--- trunk/yt/reason/App.py	(original)
+++ trunk/yt/reason/App.py	Tue Jun  3 14:35:27 2008
@@ -395,7 +395,7 @@
                               mw = self, CreationID=MyID),
                 "%s - Projection - %s" % (data_object.basename, ax),
                 MyID)
-            self._add_data_object("Proj: %s %s" % (data_object.parameter_file, ax),
+            self._add_data_object("Proj: %s %s" % (data_object, ax),
                                self.windows[-1].plot.data,
                                _ProjObjectMenuItems, parent_id)
             print "Adding with ID:", MyID

Modified: trunk/yt/reason/Notebook.py
==============================================================================
--- trunk/yt/reason/Notebook.py	(original)
+++ trunk/yt/reason/Notebook.py	Tue Jun  3 14:35:27 2008
@@ -314,7 +314,7 @@
             self, message="Save Image As ...", defaultDir=os.getcwd(), \
             defaultFile=self.plot.prefix, wildcard=wildcard, style=wx.SAVE)
         if dlg.ShowModal() == wx.ID_OK:
-            path = dlg.GetPath()
+            path = str(dlg.GetPath())
             orig_size = self.figure.get_size_inches()
             self.figure.set_size_inches((10,8))
             width = self.figure.get_dpi()*8.0



More information about the yt-svn mailing list