[GRASS-SVN] r52154 - in grass/trunk: gui/wxpython/gui_core lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 20 01:24:39 PDT 2012
Author: annakrat
Date: 2012-06-20 01:24:39 -0700 (Wed, 20 Jun 2012)
New Revision: 52154
Modified:
grass/trunk/gui/wxpython/gui_core/goutput.py
grass/trunk/lib/python/db.py
Log:
wxGUI: fix missing quotes
Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py 2012-06-20 08:00:10 UTC (rev 52153)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py 2012-06-20 08:24:39 UTC (rev 52154)
@@ -489,7 +489,7 @@
fileHistory = codecs.open(filePath, encoding = 'utf-8', mode = 'a')
except IOError, e:
GError(_("Unable to write file '%(filePath)s'.\n\nDetails: %(error)s") %
- {filePath: filePath, error : e },
+ {'filePath': filePath, 'error' : e },
parent = self.parent)
fileHistory = None
@@ -658,7 +658,7 @@
dlg = wx.FileDialog(self, message = _("Save file as..."),
defaultFile = "grass_cmd_output.txt",
wildcard = _("%(txt)s (*.txt)|*.txt|%(files)s (*)|*") %
- {txt: _("Text files"), files: _("Files")},
+ {'txt': _("Text files"), 'files': _("Files")},
style = wx.SAVE | wx.FD_OVERWRITE_PROMPT)
# Show the dialog and retrieve the user response. If it is the OK response,
@@ -670,7 +670,7 @@
output = open(path, "w")
output.write(text)
except IOError, e:
- GError(_("Unable to write file '%(path)s'.\n\nDetails: %(error)s") % {path: path, error: e})
+ GError(_("Unable to write file '%(path)s'.\n\nDetails: %(error)s") % {'path': path, 'error': e})
finally:
output.close()
self.parent.SetStatusText(_("Commands output saved into '%s'") % path)
@@ -784,7 +784,7 @@
output.write('\n')
except IOError, e:
GError(_("Unable to write file '%(filePath)s'.\n\nDetails: %(error)s") %
- {filePath: self.cmdFileProtocol, error: e})
+ {'filePath': self.cmdFileProtocol, 'error': e})
finally:
output.close()
@@ -804,7 +804,7 @@
dlg = wx.FileDialog(self, message = _("Save file as..."),
defaultFile = "grass_cmd_protocol.txt",
wildcard = _("%(txt)s (*.txt)|*.txt|%(files)s (*)|*") %
- {txt: _("Text files"), files: _("Files")},
+ {'txt': _("Text files"), 'files': _("Files")},
style = wx.SAVE | wx.FD_OVERWRITE_PROMPT)
if dlg.ShowModal() == wx.ID_OK:
self.cmdFileProtocol = dlg.GetPath()
Modified: grass/trunk/lib/python/db.py
===================================================================
--- grass/trunk/lib/python/db.py 2012-06-20 08:00:10 UTC (rev 52153)
+++ grass/trunk/lib/python/db.py 2012-06-20 08:24:39 UTC (rev 52154)
@@ -133,7 +133,7 @@
args['table'] = table
else:
fatal(_("Programmer error: '%(sql)s', '%(filename)s', or '%(table)s' must be provided") %
- {sql: 'sql', filename: 'filename', table: 'table'} )
+ {'sql': 'sql', 'filename': 'filename', 'table': 'table'} )
if 'fs' not in args:
args['fs'] = '|'
More information about the grass-commit
mailing list