[dbus-inspector] Give a warning that invoking methods is not supported. Remove unneeded debug prints. Extend DOAP des



commit 0bf3f74da25db6520dc505d1e7de15f1ef9c9925
Author: Erich Schubert <erich debian org>
Date:   Mon Dec 7 01:27:58 2009 +0100

    Give a warning that invoking methods is not supported. Remove unneeded debug prints. Extend DOAP description.

 dbus-inspector      |    6 ++++++
 dbus-inspector.doap |   11 ++++++++++-
 dbusinspect.py      |    4 +++-
 3 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/dbus-inspector b/dbus-inspector
index 7f224e7..535e733 100755
--- a/dbus-inspector
+++ b/dbus-inspector
@@ -247,6 +247,7 @@ class DBusInspector:
 		if not self._selectedNode:
 			print >>sys.stderr,"No node selected when 'execute' was clicked!"
 			return
+		showerror("Sorry, invoking of methods is not yet implemented.")
 	
 	def editedArgumentCB(self, cell, path, new_text):
 		# handle cell editing.
@@ -257,6 +258,11 @@ class DBusInspector:
 	def shutdown(self, widget=None):
 		gtk.main_quit()
 
+def showerror(message):
+	md = gtk.MessageDialog(None, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, message)
+	md.run()
+	md.destroy()
+
 DBusGMainLoop(set_as_default=True)
 gtk.gdk.threads_init()
 ui = DBusInspector()
diff --git a/dbus-inspector.doap b/dbus-inspector.doap
index 64d8aa1..ba6e825 100644
--- a/dbus-inspector.doap
+++ b/dbus-inspector.doap
@@ -4,7 +4,8 @@
          xmlns:gnome="http://api.gnome.org/doap-extensions#";
          xmlns="http://usefulinc.com/ns/doap#";>
   <name xml:lang="en">dbus-inspector</name>
-  <shortdesc xml:lang="en">DBus inspector</shortdesc>
+  <shortdesc xml:lang="en">Utility to inspect DBus interfaces</shortdesc>
+  <created>2007-01-23</created>
   <homepage rdf:resource="http://www.vitavonni.de/projekte/dbus-inspector"; />
   <category rdf:resource="http://api.gnome.org/doap-extensions#development"; />
 
@@ -12,6 +13,14 @@
     <foaf:Person>
       <foaf:name>Erich Schubert</foaf:name>
       <gnome:userid>erichs</gnome:userid>
+      <foaf:homepage>http://www.vitavonni.de/</foaf:homepage>
     </foaf:Person>
   </maintainer>
+
+  <license rdf:resource="http://usefulinc.com/doap/licenses/gpl"; />
+
+  <os>Linux</os>
+  <programming-language>Python</programming-language>
+
+  <bug-database rdf:resource="http://bugzilla.gnome.org/"; />
 </Project>
diff --git a/dbusinspect.py b/dbusinspect.py
index 94728f3..bae1ef2 100755
--- a/dbusinspect.py
+++ b/dbusinspect.py
@@ -266,7 +266,9 @@ class property(dbusnode):
 	def __init__(self, parent, xml):
 		dbusnode.__init__(self, parent, xml)
 		self.name = xml.getAttribute("name")
-		print self.xml.toxml()
+		self.access = xml.getAttribute("access")
+		self.type = xml.getAttribute("type")
+		#print self.xml.toxml()
 
 	def _validate(self):
 		assert(self.xml.localName == "property")



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