summaryrefslogtreecommitdiffstats
path: root/python/examples
Commit message (Collapse)AuthorAgeFilesLines
* * python/dbus_bindings.pyx.in: Updated to handle new D-BUS type systemJohn (J5) Palmieri2005-01-283-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - BUS_ACTIVATION -> BUS_STARTER - DBUS_BUS_ACTIVATION -> DBUS_BUS_STARTER - class MessageIter (__init__): Added recursion checking so we throw a nice error instead of just disconnecting from the bus. (get): Added arg_type parameter for recursion. Removed the nil type Added signiture type placeholder (not implemented) Added struct type placeholder (not implemented) Added varient type placeholder (not implemented) Commented out dict type for now (get_element_type): renamed from get_array_type (get_*): changed to use the dbus_message_iter_get_basic API (get_*_array): removed in favor of recursive get_array method (get_array): new recursive method which calls get to marshal the elements of the array (value_to_dbus_sig): New method returns the corrasponding dbus signiture to a python value (append): Comment out dict handling for now Handle lists with the new recursive API Comment out None handling for now (append_nil): removed (append_*): changed to use dbus_message_iter_append_basic API (append_*_array): removed in favor of recursive append_array method (__str__): Make it easier to print out recursive iterators for debugging - class Message (__str__): moved type inspection to the MessageIter class' __str__ method (get_iter): Added an append parameter wich defaults to False If True use the new API's to create an append iterator * python/dbus.py: Update to use new bindings API - TYPE_ACTIVATION -> TYPE_STARTER - class Bus (_get_match_rule): GetServiceOwner -> GetNameOwner - class ActivationBus -> class StarterBus - class RemoteObject (__call__): get an append iterator - (_dispatch_dbus_method_call): get an append iterator - class Object (emit_signal): get an append iterator * python/examples/: Fixed up the examples to work with the new API
* 2004-07-10 Seth Nickell <seth@gnome.org>Seth Nickell2004-07-111-8/+9
| | | | | | * python/examples/Makefile.am: Fix distcheck breakage caused by new examples.
* 2004-07-10 Seth Nickell <seth@gnome.org>Seth Nickell2004-07-116-33/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | * python/dbus.py: Add "message" argument to service-side dbus.Object methods. This will break existing services written using the python bindings, but will allow extraction of all the message information (e.g. who its from). Add improved "object oriented" signal handling/emission. * python/examples/example-service.py: Nix this example. * python/examples/example-signal-emitter.py: * python/examples/example-signal-recipient.py: Two new examples that show how to emit and receive signals using the new APIs. * python/examples/example-signals.py: * python/examples/gconf-proxy-service.py: * python/examples/gconf-proxy-service2.py: Add "message" argument to service methods.
* Fixed typo for python/examples makeOwen Fraser-Green2004-06-101-1/+1
|
* Update .cvsignore filesSeth Nickell2004-06-011-0/+2
|
* 2004-05-30 Seth Nickell <seth@gnome.org>Seth Nickell2004-05-304-26/+55
| | | | | | | | | | | | | | | | | | | | | | | | * python/dbus.py: Add a nicer-but-less-flexible alternate API for handling calls to virtual objects in dbus.ObjectTree. Screw up the argument order to the dbus.Object constructor for consistency with dbus.ObjectTree (and to make dbus_methods optional for future extension) * python/examples/Makefile.am: * python/examples/gconf-proxy-service.py: * python/examples/gconf-proxy-service2.py: Alternate implementation of gconf-proxy-service using the nicer dbus.ObjectTree API. * python/examples/example-service.py: * python/tests/test-server.py Reverse the argument order to deal with dbus.Object constructor changes.
* 2004-05-30 Seth Nickell <seth@gnome.org>Seth Nickell2004-05-302-3/+3
| | | | | | | | | * python/examples/example-client.py: * python/examples/example-service.py: Take it back. Lists seem to work but they're broken in the test suite. Make the base examples use lists (works fine).
* 2004-05-29 Seth Nickell <seth@gnome.org>Seth Nickell2004-05-303-0/+61
| | | | | | | | | | | | | | | * python/dbus.py: Add ObjectTree class which allows implementation of trees of "virtual" objects. Basically the python wrapper for "register_fallback". * python/examples/Makefile.am * python/examples/gconf-proxy-client.py: * python/examples/gconf-proxy-service.py: Implement a simple GConf proxy service that supports get/set on string and int GConf keys using the ObjectTree.
* 2004-05-29 Seth Nickell <seth@gnome.org>Seth Nickell2004-05-293-4/+4
| | | | | | | | | | | * python/dbus.py: * python/examples/example-client.py: * python/examples/example-service.py: * python/examples/list-system-services.py: Add SessionBus, SystemBus and ActivationBus classes so you don't need to know the special little BUS_TYPE flag.
* * python/examples/Makefile.am:Seth Nickell2004-05-281-0/+9
| | | | Forget to add Makefile.am. Do not pass go.
* * configure.in:Seth Nickell2004-05-281-0/+24
| | | | | | | | | | | * python/Makefile.am: Include the example python apps in the tarball. * python/examples/list-system-services.py Add a python new example that fetches the list of services from the system bus.
* add examplesHavoc Pennington2003-09-303-0/+57