Commit Graph

148 Commits

Author SHA1 Message Date
Mike's Primary Account
83a6a2e73e Initial documentation pass for activity by Amanda Yilmaz 2007-04-20 19:07:41 -04:00
Mike's Primary Account
81d9bed0d8 Merge branch 'master' of git+ssh://mcfletch@dev.laptop.org/git/sugar
Conflicts:

	services/presence/buddy.py
2007-04-20 16:42:47 -04:00
Mike's Primary Account
c0c64809a0 Initial documentation pass for buddy objects 2007-04-20 16:25:37 -04:00
Mike's Primary Account
79d17c14f4 Initial documentation of presence service overview.
Fix weird indent in server_plugin module
2007-04-20 13:10:40 -04:00
Dan Williams
2866d3c4c9 Convert more string-named properties to var-named 2007-04-20 12:40:53 -04:00
Dan Williams
37953c47f7 Use well-defined names for properties rather than strings 2007-04-20 12:34:16 -04:00
Dan Williams
26ed1d1504 Don't leak invalid properties 2007-04-17 13:27:34 -04:00
Dan Williams
99bf82b44f Make TestOwner create more realistic activities and switch between them 2007-04-16 22:44:54 -04:00
Dan Williams
845734eb72 Ignore unknown handles 2007-04-16 22:43:26 -04:00
Dan Williams
d45e6dd1a6 Show which buddy properties were updated 2007-04-16 22:42:35 -04:00
Dan Williams
4449b4e237 Work around server not figuring out conference server address 2007-04-16 22:40:20 -04:00
Dan Williams
5f30901e62 Always set key; new buddy properties replace old ones 2007-04-16 22:39:07 -04:00
Dan Williams
8b47d93ad2 Fix debug output; print handle 2007-04-16 22:37:56 -04:00
Marco Pesenti Gritti
d49b0ed6fb Use sys.path.append, not insert 2007-04-15 12:26:50 +02:00
Dan Williams
879ef9b0e0 Add activity to owner's list after sharing it 2007-04-13 16:59:16 -04:00
Dan Williams
17adb7b58b Add some debug output when sharing activities 2007-04-13 16:00:22 -04:00
Dan Williams
cc2d69e364 Forgot to import logging 2007-04-13 15:59:36 -04:00
Dan Williams
f169628cbd Query non-local activity properties on discovery 2007-04-13 15:42:54 -04:00
Dan Williams
182de3af1c Remove test code 2007-04-13 15:41:19 -04:00
Dan Williams
5015beaaa6 Clean up activity join/leave debug messages 2007-04-13 15:37:12 -04:00
Dan Williams
94431a66eb Ensure local activities emit ActivityAppeared signal when shared 2007-04-13 15:15:09 -04:00
Dan Williams
15febc6620 Correctly handle blank activity list 2007-04-13 15:05:21 -04:00
Dan Williams
02900bbfbb Fix traceback when sharing activity 2007-04-13 14:06:49 -04:00
Dan Williams
773ae4965e Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-13 13:12:04 -04:00
Dan Williams
31000f6c3e Asynchronize activity join/share in the PS 2007-04-13 13:11:59 -04:00
Guillaume Desmottes
6b6b72f9c9 implement org.laptop.Sugar.Presence.GetPreferredConnection 2007-04-13 18:29:50 +02:00
Dan Williams
7b40f9bf60 Asynchronize set_activity_properties 2007-04-12 17:03:30 -04:00
Dan Williams
118e039a8b Remove test activity sharing code 2007-04-12 17:03:14 -04:00
Dan Williams
6e070996c9 Asynchronize setting owner properties 2007-04-12 16:48:40 -04:00
Dan Williams
5970bb6e62 Convert print statements to logging.debug 2007-04-12 14:44:23 -04:00
Dan Williams
3d3dd23390 Randomness tweak 2007-04-12 00:14:29 -04:00
Dan Williams
3f2f609c4a Use different log file for test PS instances 2007-04-11 23:45:45 -04:00
Dan Williams
3d6bff9278 Ignore invalid handles on avatar updates 2007-04-11 23:45:20 -04:00
Dan Williams
162a87f882 Create test owner for presence service
This owner changes properties periodically so we can test out the PS's handling
of property changes.  To execute, run Sugar and then make sure that the D-Bus
address is the one sugar is using (get it from ~/.sugar/default/session.info).
Then run:

build/bin/sugar-presence-service X

where X is a number 1 -> 9 inclusive.  It will generate fake buddy info for that
test buddy and then start up a presence service for that buddy, changing a random
property of the buddy every 10 seconds.
2007-04-11 22:49:14 -04:00
Dan Williams
133a718f28 Really fix cache code this time; revert to previous code plus ensure directory exists 2007-04-10 15:22:28 -04:00
Dan Williams
a4792552f4 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-10 15:15:30 -04:00
Dan Williams
e49b36c0f5 Cleanup new cache code 2007-04-10 15:15:21 -04:00
Dan Williams
3e862d517c Ensure icon cache directory exists 2007-04-10 15:14:19 -04:00
Marco Pesenti Gritti
f134efbb6f Swap class order here too, to fix FC7 2007-04-10 21:12:33 +02:00
Dan Williams
8d4d87a081 Make contact-online handler async; print -> logging.debug 2007-04-10 15:00:49 -04:00
Marco Pesenti Gritti
3350d5772a Swap the classes order, which for some reason make it work on FC7 2007-04-10 20:29:34 +02:00
Dan Williams
dba902bd15 Fix unknown variable bug 2007-04-10 14:12:12 -04:00
Dan Williams
48cab08b33 PS fixes; use correct type on public keys and hide invalid buddies 2007-04-10 10:59:35 -04:00
Dan Williams
c9310c2220 PS fixes; use correct type on public keys and hide invalid buddies 2007-04-10 10:59:31 -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
Dan Williams
fc12f73fba Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-04-06 15:29:14 -04:00
Dan Williams
e37bba0094 PresenceService fixes; don't traceback on avahi errors 2007-04-06 15:29:11 -04:00
Marco Pesenti Gritti
c9c1117872 Remove the threadframe stuff which went unused. 2007-04-06 20:13:37 +02:00
Dan Williams
de46d81828 Disable buddy icon request for trial 1 2007-03-29 11:48:21 -04:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
2d9a06ec9a Add the root path of the services to python path, not services/.
Get rid of the now useless env.get_services_dir
2007-03-09 12:32:32 +01:00
Tomeu Vizoso
cb0d75eb59 Rename IconColor to XoColor. 2007-02-23 13:09:33 +01:00
Marco Pesenti Gritti
4cdf88f31d Do not hardcode /usr/bin/python 2007-01-20 13:38:58 +01:00
Dan Williams
5aedeae62f Validate colors; ensure that Owner's color is a string 2006-12-19 17:50:13 -05:00
Marco Pesenti Gritti
37853ad836 Fix up service installation path 2006-12-04 14:32:48 -05:00
Marco Pesenti Gritti
bd906334ea Fix a few indentation screw ups 2006-12-04 14:27:08 -05:00
Justin Gallardo
b9f9ef0fe9 Changed all tabs to 4 spaces for python style 2006-12-04 11:12:24 -08:00
Marco Pesenti Gritti
546dc26bea Activate the logger before importing the ps, so that we
show meaningful errors if avahi is missing.
2006-10-29 22:43:52 +01:00
Dan Williams
f679b4b3cc Add copyright header 2006-10-29 11:05:50 -05:00
Dan Williams
6290a5fae9 Retry resolution of a buddy presence service up to 3 times 2006-10-20 15:01:08 -04: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
Dan Williams
f7f1455b46 Revert to IP4 only since Avahi mixes up IP4 and IP6 when using PROTO_UNSPEC 2006-10-20 12:29:11 -04:00
Marco Pesenti Gritti
54941c542b Do not traceback on properties containing = 2006-10-19 17:09:42 +02:00
Marco Pesenti Gritti
dc0de1d35d Let the presence service set his own path 2006-10-17 09:57:00 +02:00
Marco Pesenti Gritti
4e88e927fb Remove the old dbus stuff, use one log file per process 2006-10-16 15:56:22 +02:00
Marco Pesenti Gritti
bc0ee6d34c Refactor startup. In progress, give me a couple hours.
For now start sugar with "sugar-emulator shell/sugar-shell"
2006-10-16 13:34:43 +02:00
Marco Pesenti Gritti
a3be4492b2 Delete unused p2p model code. Fix distcheck. 2006-10-15 02:03:58 +02:00
Marco Pesenti Gritti
94dcfa8a94 Add GPL headers 2006-10-15 01:25:50 +02:00
Marco Pesenti Gritti
cbd3a52a68 Do not set up the owner of the presence service if there
is no nick name in the env. I'm not sure this is the best
approach, we need to figure it out.

First go at the new simulator.
2006-10-09 15:11:15 +02:00
Dan Williams
75fb1a33de Send empty lists rather than NotFoundError exceptions where appropriate; compact some code 2006-10-06 11:05:27 -04:00
Dan Williams
022c183016 Fix wrong conversion of typechecking to isinstance 2006-10-06 10:46:17 -04:00
John (J5) Palmieri
6f337e0b14 Changed all type checking to use isinstance 2006-10-03 17:06:48 -04:00
John (J5) Palmieri
7c342e75bf s/type(val) == type({})/isinstance(val, dict)
This needs to be changed everwhere in the code because
isinstance will match derived types where == will not
2006-10-03 14:32:29 -04:00
Dan Williams
3919643c7d Expose local name collision errors (ie, somebody else registered that service) 2006-10-02 17:11:20 -04:00
Dan Williams
fc9c923da9 Ignore local name collisions again 2006-09-29 16:53:42 -04:00
Dan Williams
22be6cb0da Work around bug where Avahi passes back a blank service type; and don't traceback on invalid service types 2006-09-27 16:47:23 -04:00
Dan Williams
9ce768ca39 Add and remove activities to/from Buddy objects at appropriate times 2006-09-27 11:35:34 -04:00
Dan Williams
38e85f3987 Ignore duplicate activity additions 2006-09-27 11:35:15 -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
31c69ed167 Hook up Buddy.add_activity() and Buddy.remove_activity() 2006-09-26 13:23:12 -04:00
Dan Williams
0e67d939a8 Set icon cache earlier 2006-09-25 14:15:42 -04:00
Dan Williams
7ba30ea0d2 Clean up debug messages 2006-09-25 13:42:37 -04:00
Dan Williams
e89c88b191 Fix location of cache debug prints 2006-09-25 13:24:27 -04:00
Dan Williams
5e3d56fe77 Rename function to match previous _request_buddy_icon->_get_buddy_icon 2006-09-25 13:15:36 -04:00
Dan Williams
85d70f2383 Use the buddy icon cache 2006-09-25 10:57:21 -04:00
Dan Williams
f6c043b204 Add a buddy icon cache 2006-09-25 10:56:31 -04:00
Dan Williams
b67c0a6b3d Don't print EntryGroup messages for now 2006-09-24 21:30:48 -04:00
Dan Williams
d2e235838e Only print out service resolutions, not updates 2006-09-24 21:30:28 -04:00
Dan Williams
7268d8803d Ensure owner validity before using 2006-09-24 21:29:11 -04:00
Dan Williams
6473444e09 Add a 'Disappeared' signal on the buddy object 2006-09-22 17:21:34 -04:00
Dan Williams
fcef47181b Don't hardcode property key names; protect against spurious _presence_olpc services; watch for changes on the _presence_olpc service, like current activity updates 2006-09-22 15:47:12 -04:00
Dan Williams
1ab8089457 Make Service a GObject subclass, and add a property-changed signal
Also fix bug where all property keys were sent in the property-changed signal
because the properties dict was cleared too early.
2006-09-22 15:44:25 -04:00
Dan Williams
d0f23744f0 Use asynchronous service resolution to capture service updates too 2006-09-19 13:54:32 -04:00
Dan Williams
14763c0f5c Fix up registered service type checking code 2006-09-15 18:37:54 -04:00
Dan Williams
922b7238b9 Merge 2006-09-15 16:50:06 -04:00
Marco Pesenti Gritti
5f99dcf9a5 Move the presence service out of the shell 2006-09-15 13:54:16 +02:00