[gevice] fixed preferences reading. (others)



commit 8186257faf9b82a004824b239ee6ce0a282c8be8
Author: Alejandro Valdes Jimenez <avaldes gnome org>
Date:   Wed Nov 14 12:25:39 2012 -0300

    fixed preferences reading. (others)

 ChangeLog           |    1 +
 src/geviceexport.py |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d677faf..68d94fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2012-11-14  Alejandro Valdes J.  <avaldes gnome org>
 	* prepare-ChangeLog.pl: Add script.
 	* src/gevicediagram.py: fixed preferences reading.
+	* src/geviceexport.py: fixed preferences reading.
 
 2012-09-28  Alejandro Valdes J.  <avaldes gnome org>
 	* data/apps.gevice.gschema.xml: update schema gsettings.
diff --git a/src/geviceexport.py b/src/geviceexport.py
index 331d21a..5955d08 100644
--- a/src/geviceexport.py
+++ b/src/geviceexport.py
@@ -33,6 +33,7 @@ class GeviceExport:
   def save_file (self,gevice):
     if self.filename:
       self.filename = self.filename + self.ext
+      print self.filename
 
       try:
         FILE = open (self.filename,"w")
@@ -40,8 +41,7 @@ class GeviceExport:
           self.get_all_data_from_view (gevice,FILE)
           FILE.close()
       except:
-        result = gevice.show_infobar_message (_("Can not write to file"), 
-          Gtk.MessageType.ERROR)        
+        result = gevice.show_infobar_message (_("Can not write to file"), Gtk.MessageType.ERROR)        
 
   def get_all_data_from_view (self,gevice,FILE):
     #sql = "select nom_tipo_disp,nom_marca,nom_modelo,nom_tipo_disp || ' ' || nom_marca || ' ' || nom_modelo,count(nom_tipo_disp) "
@@ -56,6 +56,6 @@ class GeviceExport:
     for reg in rows:
       line = ""
       for col in reg:
-        line = line + str(col) + gevice.gpref.csvseparator
+        line = line + str(col) + gevice.gpref.settings.get_string("csvseparator")
 
       FILE.write (line + self.endline)



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