[gevice] change SQL
- From: Alejandro Valdes Jimenez <avaldes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gevice] change SQL
- Date: Sat, 15 Aug 2009 17:19:27 +0000 (UTC)
commit 0c4a1010fd64dfacc4cd4c8ea6998aa9036fa6ff
Author: Alejandro Valdes Jimenez <avaldes utalca cl>
Date: Sat Aug 15 13:19:19 2009 -0400
change SQL
ChangeLog | 4 ++++
src/geviceexport.py | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2147906..ebdacd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-15 Alejandro Valdes Jimenez <avaldes gnome org>
+
+ * src/geviceexport.py: modify SQL.
+
2009-07-28 Alejandro Valdes jimenez <avaldes gnome org>
* data/glade/gevice.glade: remove viewport (notebook)
diff --git a/src/geviceexport.py b/src/geviceexport.py
index b6cc810..a732324 100644
--- a/src/geviceexport.py
+++ b/src/geviceexport.py
@@ -40,8 +40,10 @@ class GeviceExport:
result = gevice.show_message (_("Can not write to file"),gtk.MESSAGE_ERROR,gtk.BUTTONS_OK)
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) "
- sql = sql + "from todoslosdispositivos group by nom_tipo_disp,nom_marca,nom_modelo;"
+ #sql = "select nom_tipo_disp,nom_marca,nom_modelo,nom_tipo_disp || ' ' || nom_marca || ' ' || nom_modelo,count(nom_tipo_disp) "
+ #sql = sql + "from todoslosdispositivos group by nom_tipo_disp,nom_marca,nom_modelo;"
+
+ sql = "select nom_disp,nom_tipo_disp || ' ' || nom_marca || ' ' || nom_modelo,ip_disp from todoslosdispositivos order by 2;"
cur = gevice.gdbase.conn.cursor()
cur.execute(sql)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]