logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Python bindings: msg#00010

freedesktop.dbus

Subject: Python bindings

I'm working on Python bindings right now based off the code Johan
originally wrote some months ago. They are at the "basically working"
stage right now (e.g. I've rewritten dbus-send and dbus-monitor in
Python). BUT... they are currently an uninspired wrappering of the C API
into simple objects like Connection, Server, Message, etc. I plan to
keep this API around for completeness, but I'd really like to build a
nicer API around it, perhaps in the spirit of dcoppython.

dcoppython overloads method and sub-object resolution to make runtime
DCOP objects that behave as if they were "normal":

object = dcop.DCOPObject("KWeatherService", "WeatherService")

At this point, if no exceptions have been thrown, you should have an
object upon which you can make method calls:

station_list = object.listStations()

Given introspection it should be possible to get rid of the object
resolution overloading and actually return Objects that had all their
methods already included as normal methods, so for example dir(object)
would return a list of all the methods. The downside is that we'd have
to fetch introspection information for each object, whereas in the
dcoppython world you can "call first and ask questions later".

Anyone have opinions on this?

-Seth







Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo