|
|
Sponsor |
Python bindings: msg#00010freedesktop.dbus
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | AFL 2.0 license change, Havoc Pennington |
|---|---|
| Next by Date: | Question with object_path registrations, Seth Nickell |
| Previous by Thread: | AFL 2.0 license change, Havoc Pennington |
| Next by Thread: | Question with object_path registrations, Seth Nickell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|