Commit Graph

151 Commits

Author SHA1 Message Date
Morgan Collett
4853beb4fb Document get_channels 2007-10-15 17:15:48 +01:00
Morgan Collett
10f2932b5a Add logging to _leave_error_cb 2007-10-15 17:15:23 +01:00
Marco Pesenti Gritti
6073a396b3 Rename activity service_name to bundle_id 2007-10-09 13:15:06 +02:00
Simon McVittie
f1024c3b0a Support the newly extended ActivityInvitation signal 2007-08-30 15:00:12 +01:00
Simon McVittie
5bfd70baca sugar.presence.presenceservice: Don't call now-nonexistent method InviteActivity - instead, use the new property-setting API to set the 'private' property suitably 2007-08-30 12:17:33 +01:00
Simon McVittie
55759d5608 Add support for mutable activity properties and the beginnings of support for invitations 2007-08-30 12:14:35 +01:00
Simon McVittie
05d33d278d sugar.presence.buddy: Remove various hacks regarding byte arrays; use dbus-python's much simpler API instead 2007-08-30 12:00:56 +01:00
Guillaume Desmottes
232ae8d082 Update to new tubes API 2007-08-28 20:39:10 +02:00
John (J5) Palmieri
2296fa4a6e Fix typo s/get_buddies_async/get_activities_async 2007-08-27 16:46:38 -04:00
John (J5) Palmieri
f5f95f4d7b Merge branch 'master' of git+ssh://j5@dev.laptop.org/git/sugar 2007-08-27 15:51:55 -04:00
John (J5) Palmieri
c06d639487 Make D-Bus calls async on startup 2007-08-27 15:47:58 -04:00
Morgan Collett
fc4e4692d7 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-25 14:58:09 +01:00
John (J5) Palmieri
2cae66b0ea More follow_name_owner_changed optimiztion
* reasoning changed from a FIXME to a NOTE to explain why we need
     to follow_name_owner_changed
2007-08-24 18:25:56 -04:00
Morgan Collett
d2261e4051 Fix sharing publicly 2007-08-23 13:48:16 +01:00
Morgan Collett
52f2bea3ed Use new PresenceService API for sharing by invitation only 2007-08-22 15:54:12 +01:00
Morgan Collett
d09b8d3ea4 Document _share_activity_cb 2007-08-21 12:08:33 +01:00
Morgan Collett
cfb0541249 Clean up leave() and callbacks 2007-08-21 11:39:05 +01:00
Dan Williams
d0caf99277 #2299: Really fix buddy properties coming through as arrays of bytes 2007-08-20 15:56:49 -04:00
Morgan Collett
dab82f6183 Push tubeconn into sugar.presence 2007-08-16 16:11:42 +01:00
Dan Williams
13b98c8bfc Fix initialization order of buddy class '_activities' member 2007-07-17 14:07:59 -04:00
Dan Williams
1698c297c7 Suppress traceback when creating a new buddy object on buddy-disappeared signal 2007-07-16 14:00:32 -04:00
Morgan Collett
66983f0d24 sugar/presence/activity.py: make Activity.leave call the PS
Needed to make buddy-left work
2007-07-11 10:38:15 +02:00
Marco Pesenti Gritti
2fcca4d656 Add a bunch of copyrights 2007-06-24 14:52:46 +02:00
Simon McVittie
b33dd7cfab sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle() 2007-05-24 19:04:35 +01:00
Simon McVittie
2b9cb92953 Revert "sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle()"
This reverts commit c6ac2873c8 because
the necessary API isn't committed in PS yet.
2007-05-24 17:48:43 +01:00
Simon McVittie
ccc224e76f sugar.presence.presenceservice: Use absolute imports 2007-05-18 15:33:21 +01:00
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