Simon McVittie
29cc39968d
Don't rely on dbus importing the exceptions module - import it explicitly.
...
Also divide up imports in a PEP8-compliant way.
2007-05-18 15:31:32 +01:00
Simon McVittie
c6ac2873c8
sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle()
2007-05-18 15:24:58 +01:00
Simon McVittie
4b26840333
sugar.presence.presenceservice, services/presence: Use named loggers.
...
This causes events in the log to be annotated with the module that emitted the
message.
Before: DEBUG - root: Starting up...
After: DEBUG - s-p-s.server_plugin: Starting up...
I've used a log domain of "sugar.presence..." for the client library and
e.g. "s-p-s.activity" for the service internals.
2007-05-15 14:58:15 +01:00
Simon McVittie
05d7ed5084
sugar.presence.presenceservice: don't mix up local variable 'activity' and imported module 'activity'
2007-05-08 16:23:07 +01:00
Dan Williams
7774073276
Make joining asynchronous on the activity side
2007-05-02 23:25:15 -04:00
Dan Williams
570c7e6052
Add buddy ip4-address property (temporary)
2007-04-30 23:44:39 -04:00
Dan Williams
511c666a4a
Fix current activity property; get activities when buddy is created
2007-04-26 16:51:37 -04:00
Guillaume Desmottes
a22d8a65f1
Fix logging.warn arguments
2007-04-25 12:47:29 +02:00
Dan Williams
5d11e7fdd9
Convert activity properties to gproperties
2007-04-24 11:49:43 -04:00
Dan Williams
86ab6ca36b
Reconnect to the PS if it goes away and comes back
2007-04-23 13:11:21 -04:00
Dan Williams
30a50bd9fc
Add test allow_offline_iface to get_instance()
2007-04-23 12:47:50 -04:00
Dan Williams
4ca4e5564e
Add test code for Sugar PresenceService bindings
2007-04-23 12:06:41 -04:00
Dan Williams
6513fef6b2
Cleanups; replace ObjectCache with a straight dict; fix signal name; doc cleanups
2007-04-23 10:08:55 -04:00
Mike C. Fletcher
96ab3a10fe
More code to handle service-offline cases and log messages to tell the
...
user/admin what's going on.
2007-04-22 00:31:32 -04:00
Mike C. Fletcher
a7af5b06cd
Try to avoid Sugar's shell just crashing and leaving a blank X server
...
when the PresenceService isn't available on the back-end for whatever
reason, whether mis-configuration, corrupted installation, unexpected
circumstances, or what have you.
This patch makes as few changes as possible to the code,
simply replacing the _ps member with a property that re-attempts
connection on each access until an attempt is successful.
2007-04-22 00:23:19 -04:00
Guillaume Desmottes
a4e18cf9c5
add get_preferred_connection method to PresenceService
2007-04-16 16:41:00 +02:00
Mike C. Fletcher
8635a702c6
Documentation for the activity and buddy presence objects
2007-04-15 00:27:48 -04:00
Mike C. Fletcher
0fc5e67dcc
More documentation, mostly for the sugar.presence.presenceservice
...
module.
2007-04-14 23:38:21 -04:00
Dan Williams
3abe79353a
Asynchronize activity sharing on the client side
2007-04-13 16:27:58 -04:00
Dan Williams
defd9f76e3
Convert icon data to python string before exposing it
2007-04-10 22:24:31 -04:00
Dan Williams
bf4b1a3f8f
Fix icon changed signal handling in sugar PS bindings
2007-04-10 15:23:01 -04:00
Dan Williams
eee98e1f82
Re-enable new PresenceService by default
2007-04-10 14:49:14 -04:00
Dan Williams
a07e946cc4
Readd mock presence service and enable it by default
2007-04-10 08:39:02 -04:00
Dan Williams
76a0f45aa8
More new PS fixes
2007-04-09 16:05:32 -04:00
Dan Williams
bc083dae5a
Cut over to new PresenceService
2007-04-09 14:40:56 -04:00
Dan Williams
2509d990e4
Cut over to new PresenceService
2007-04-09 14:40:50 -04:00
Marco Pesenti Gritti
f59fab783f
Change the feedback for connected/connecting/disconnected access point,
...
using two different types of pulsing.
2007-03-29 17:25:47 +02:00
Marco Pesenti Gritti
bf805bfa2f
Disable the presence service. You can reenable it by just
...
changing the _ENABLE var to True.
2007-03-28 12:17:34 +02:00
Justin Gallardo
b9f9ef0fe9
Changed all tabs to 4 spaces for python style
2006-12-04 11:12:24 -08:00
Dan Williams
1226b0b6b9
Fix Buddy object's get_service_of_type() method
...
This call would always fail for activity services because the
dbus bindings for it did not pass in the activity at all. Fix
that.
2006-10-20 13:15:23 -04:00
Marco Pesenti Gritti
615242f4f8
Add LGPL header
2006-10-15 01:08:44 +02:00
Marco Pesenti Gritti
1df5b0020d
Fix get_published_values to actually return the dict.
...
Get rid of the activity title property, we are not using it anyway.
2006-10-13 13:03:24 +02:00
Ian Bicking
bdf9c1b392
Updates to presence test and mockdbus
2006-10-03 12:50:21 -05:00
Ian Bicking
b010c0cd42
I added tests for the presence client interface. But the presence
...
client interface, I realize, is really boring and not worth testing
much. More interesting, I guess, is the mockdbus module. This will
need some more extension to be used by a server (I think), like the
presence server.
2006-10-03 12:25:05 -05:00
Dan Williams
70cbd90c7a
Fix signal args
2006-09-27 15:01:40 -04:00
Dan Williams
ce577a6376
Refactor current activity handling to be top-level attributes and D-Bus signals, not stuck in the property dict
2006-09-26 13:31:14 -04:00
Dan Williams
6473444e09
Add a 'Disappeared' signal on the buddy object
2006-09-22 17:21:34 -04:00
Dan Williams
c978b5ed6d
Ensure properties will always be an empty dict
2006-09-22 15:42:11 -04:00
Dan Williams
ab7ef75518
Add current activity accessor
2006-09-21 16:44:19 -04:00
Dan Williams
d0f23744f0
Use asynchronous service resolution to capture service updates too
2006-09-19 13:54:32 -04:00
Dan Williams
b39eff3365
Refcount tracked service types; ensure only the process that registers a service can change it; add support for updated service properties/published values
2006-09-15 16:41:11 -04:00
Dan Williams
e402fe3286
Get initial properties synchronously rather than async
2006-09-08 11:26:40 -04:00
Dan Williams
e2306d81bd
Add PropertyChanged signal for Buddy objects because color and address can change later. Also don't try to stuff None through dbus
2006-09-07 23:30:22 -04:00
Dan Williams
ef47f6e4c5
Fix buddy & activity visibility leaks if they are not yet valid; add Activity color attribute and don't make activity valid until we get the color
2006-08-25 14:55:19 -04:00
Dan Williams
d2c0829165
Don't traceback when somebody doesn't advertise their color
2006-08-24 11:09:53 -04:00
Dan Williams
eef5e5b18a
Convert PS bindings instantiation into a singleton to cut resource usage
2006-08-23 11:38:56 -04:00
Dan Williams
d334b6e3bd
Add a color property and access to Buddy objects
2006-08-23 11:14:46 -04:00
Dan Williams
6d7782654c
Cache activity id
2006-08-16 23:05:53 -04:00
Marco Pesenti Gritti
c7c71d25a8
Use dbus activation to start the presence service
2006-08-13 00:28:38 +02:00
Marco Pesenti Gritti
d919848324
Rework to not use protected API
2006-08-07 11:08:10 +02:00