[gevice] Add New image
- From: Alejandro Valdes Jimenez <avaldes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gevice] Add New image
- Date: Fri, 16 Dec 2011 17:00:46 +0000 (UTC)
commit c48c708d01c7dd6f93db81747989cbbc3e871e13
Author: Alejandro Valdes Jimenez <avaldes gnome org>
Date: Fri Dec 16 14:00:36 2011 -0300
Add New image
ChangeLog | 5 +++++
data/images/Makefile.am | 3 ++-
data/other/db_gevice.sql | 16 ++++++++--------
src/gevice.py | 2 ++
4 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c370314..223893f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
2011-12-16 Alejandro Valdes Jimenez <avaldes gnome org>
+ * data/images/Makefile.am:
+ * data/other/db_gevice.sql: New image.
+ * src/gevice.py: New image
+
+2011-12-16 Alejandro Valdes Jimenez <avaldes gnome org>
* data/images/Makefile.am: Add image file.
2011-12-16 Alejandro Valdes Jimenez <avaldes gnome org>
diff --git a/data/images/Makefile.am b/data/images/Makefile.am
index 7a3521f..3565ca4 100644
--- a/data/images/Makefile.am
+++ b/data/images/Makefile.am
@@ -39,7 +39,8 @@ art_DATA = ap.png \
win2003-64.png \
win2008.png \
win2008-64.png \
- winxp.png
+ winxp.png \
+ cisco.png
logodir = $(datadir)/pixmaps
diff --git a/data/other/db_gevice.sql b/data/other/db_gevice.sql
index 4c96b3d..071b282 100644
--- a/data/other/db_gevice.sql
+++ b/data/other/db_gevice.sql
@@ -27,14 +27,14 @@ INSERT INTO "edificio" VALUES(0,'None',0);
CREATE TABLE rack (id_rack NUMERIC PRIMARY KEY NOT NULL, detalle TEXT, id_nivel NUMERIC, id_edif NUMERIC, FOREIGN KEY (id_nivel) REFERENCES nivel (id_nivel), FOREIGN KEY (id_edif) REFERENCES edificio (id_edif));
INSERT INTO "rack" VALUES(0,'None',0,0);
CREATE TABLE dispositivo (serial TEXT PRIMARY KEY NOT NULL, nom_disp TEXT NOT NULL,obs_disp TEXT, ip_disp TEXT, ptas_disp TEXT, id_modelo NUMERIC, id_rack NUMERIC, os TEXT NOT NULL default "None", FOREIGN KEY (id_modelo) REFERENCES modelo (id_modelo), FOREIGN KEY (id_rack) REFERENCES rack (id_rack));
-INSERT INTO "dispositivo" VALUES('22222222','rsw-main','','127.0.0.1','',2,0,'None');
-INSERT INTO "dispositivo" VALUES('11111111','sw-main','','127.0.0.1','',1,0,'None');
-INSERT INTO "dispositivo" VALUES('33333333','srv-web1','','127.0.0.1','',3,0,'None');
-INSERT INTO "dispositivo" VALUES('44444444','srv-dns','','127.0.0.1','',3,0,'None');
-INSERT INTO "dispositivo" VALUES('55555555','srv-dhcp','','127.0.0.1','',3,0,'None');
-INSERT INTO "dispositivo" VALUES('66666666','rsw-campus1','','127.0.0.1','',2,0,'None');
-INSERT INTO "dispositivo" VALUES('77777777','sw-campus1-1','','127.0.0.1','',1,0,'None');
-INSERT INTO "dispositivo" VALUES('88888888','srv-dhcp2','','127.0.0.1','',3,0,'None');
+INSERT INTO "dispositivo" VALUES('22222222','rsw-main','','127.0.0.1','',2,0,'Cisco');
+INSERT INTO "dispositivo" VALUES('11111111','sw-main','','127.0.0.1','',1,0,'Cisco');
+INSERT INTO "dispositivo" VALUES('33333333','srv-web1','','127.0.0.1','',3,0,'Debian64');
+INSERT INTO "dispositivo" VALUES('44444444','srv-dns','','127.0.0.1','',3,0,'Redhat64');
+INSERT INTO "dispositivo" VALUES('55555555','srv-dhcp','','127.0.0.1','',3,0,'Ubuntu64');
+INSERT INTO "dispositivo" VALUES('66666666','rsw-campus1','','127.0.0.1','',2,0,'Cisco');
+INSERT INTO "dispositivo" VALUES('77777777','sw-campus1-1','','127.0.0.1','',1,0,'Cisco');
+INSERT INTO "dispositivo" VALUES('88888888','srv-dhcp2','','127.0.0.1','',3,0,'Windows2003');
CREATE TABLE conecta (serialp TEXT NOT NULL, serialh TEXT NOT NULL, id_tipo_enlace NUMERIC NOT NULL, FOREIGN KEY (serialp) REFERENCES dispositivo (serial), FOREIGN KEY (serialh) REFERENCES dispositivo (serial), FOREIGN KEY (id_tipo_enlace) REFERENCES tipo_enlace (id_tipo_enlace), PRIMARY KEY (serialp,serialh,id_tipo_enlace));
INSERT INTO "conecta" VALUES('22222222','11111111',1);
INSERT INTO "conecta" VALUES('22222222','66666666',1);
diff --git a/src/gevice.py b/src/gevice.py
index 0d59499..5bd80ab 100755
--- a/src/gevice.py
+++ b/src/gevice.py
@@ -88,6 +88,8 @@ class Gevice:
self.arrayos['Windows2008-64'] = icon
icon = GdkPixbuf.Pixbuf.new_from_file_at_size (os.path.join (config.ARTDIR,"winxp.png"), 24, 24)
self.arrayos['WindowsXP'] = icon
+ icon = GdkPixbuf.Pixbuf.new_from_file_at_size (os.path.join (config.ARTDIR,"cisco.png"), 24, 24)
+ self.arrayos['Cisco'] = icon
self.modelos = Gtk.ListStore(str,str)
for m in self.arrayos:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]