47 Commits (57c928916ca7cdacd728834a9b59ecc33b55339e)

Author SHA1 Message Date
Marco Pesenti Gritti 57c928916c Refactor sugar.env and paths 18 years ago
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
18 years ago
Tomeu Vizoso cb0d75eb59 Rename IconColor to XoColor. 18 years ago
Marco Pesenti Gritti 4cdf88f31d Do not hardcode /usr/bin/python 18 years ago
Dan Williams 5aedeae62f Validate colors; ensure that Owner's color is a string 18 years ago
Marco Pesenti Gritti 37853ad836 Fix up service installation path 18 years ago
Marco Pesenti Gritti bd906334ea Fix a few indentation screw ups 18 years ago
Justin Gallardo b9f9ef0fe9 Changed all tabs to 4 spaces for python style 18 years ago
Marco Pesenti Gritti 546dc26bea Activate the logger before importing the ps, so that we
show meaningful errors if avahi is missing.
18 years ago
Dan Williams f679b4b3cc Add copyright header 18 years ago
Dan Williams 6290a5fae9 Retry resolution of a buddy presence service up to 3 times 18 years ago
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.
18 years ago
Dan Williams f7f1455b46 Revert to IP4 only since Avahi mixes up IP4 and IP6 when using PROTO_UNSPEC 18 years ago
Marco Pesenti Gritti 54941c542b Do not traceback on properties containing = 18 years ago
Marco Pesenti Gritti dc0de1d35d Let the presence service set his own path 18 years ago
Marco Pesenti Gritti 4e88e927fb Remove the old dbus stuff, use one log file per process 18 years ago
Marco Pesenti Gritti bc0ee6d34c Refactor startup. In progress, give me a couple hours.
For now start sugar with "sugar-emulator shell/sugar-shell"
18 years ago
Marco Pesenti Gritti a3be4492b2 Delete unused p2p model code. Fix distcheck. 18 years ago
Marco Pesenti Gritti 94dcfa8a94 Add GPL headers 18 years ago
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.
18 years ago
Dan Williams 75fb1a33de Send empty lists rather than NotFoundError exceptions where appropriate; compact some code 18 years ago
Dan Williams 022c183016 Fix wrong conversion of typechecking to isinstance 18 years ago
John (J5) Palmieri 6f337e0b14 Changed all type checking to use isinstance 18 years ago
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
18 years ago
Dan Williams 3919643c7d Expose local name collision errors (ie, somebody else registered that service) 18 years ago
Dan Williams fc9c923da9 Ignore local name collisions again 18 years ago
Dan Williams 22be6cb0da Work around bug where Avahi passes back a blank service type; and don't traceback on invalid service types 18 years ago
Dan Williams 9ce768ca39 Add and remove activities to/from Buddy objects at appropriate times 18 years ago
Dan Williams 38e85f3987 Ignore duplicate activity additions 18 years ago
Dan Williams ce577a6376 Refactor current activity handling to be top-level attributes and D-Bus signals, not stuck in the property dict 18 years ago
Dan Williams 31c69ed167 Hook up Buddy.add_activity() and Buddy.remove_activity() 18 years ago
Dan Williams 0e67d939a8 Set icon cache earlier 18 years ago
Dan Williams 7ba30ea0d2 Clean up debug messages 18 years ago
Dan Williams e89c88b191 Fix location of cache debug prints 18 years ago
Dan Williams 5e3d56fe77 Rename function to match previous _request_buddy_icon->_get_buddy_icon 18 years ago
Dan Williams 85d70f2383 Use the buddy icon cache 18 years ago
Dan Williams f6c043b204 Add a buddy icon cache 18 years ago
Dan Williams b67c0a6b3d Don't print EntryGroup messages for now 18 years ago
Dan Williams d2e235838e Only print out service resolutions, not updates 18 years ago
Dan Williams 7268d8803d Ensure owner validity before using 18 years ago
Dan Williams 6473444e09 Add a 'Disappeared' signal on the buddy object 18 years ago
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 18 years ago
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.
18 years ago
Dan Williams d0f23744f0 Use asynchronous service resolution to capture service updates too 18 years ago
Dan Williams 14763c0f5c Fix up registered service type checking code 18 years ago
Dan Williams 922b7238b9 Merge 18 years ago
Marco Pesenti Gritti 5f99dcf9a5 Move the presence service out of the shell 18 years ago