388 Commits (c91bbd18ccf00b87d0e99029235f120b1b7839d6)

Author SHA1 Message Date
Marco Pesenti Gritti 61314c9705 Don't make all .py executable please... 17 years ago
Tomeu Vizoso 1afe9273a1 Add an option for saving clipboard objects to the Journal. 17 years ago
Tomeu Vizoso 130f59efdc Clipboard fixes. 17 years ago
Tomeu Vizoso 42e2b95379 Misc dnd fixes. 17 years ago
Eduardo Silva a590186e78 Fix missed objecttype makefile entry 17 years ago
Tomeu Vizoso 22689ed1da Several fixes for the object type registry and the activity registry. 17 years ago
Eduardo Silva cc604e0815 Console: new nandflash status viewer 17 years ago
Eduardo Silva 67b7e3457b Console: little fix 17 years ago
Eduardo Silva 28deb37ffa Console: remove unnecessary file 17 years ago
Eduardo Silva 8e918f865b Console: new graphics package 17 years ago
Eduardo Silva 34e8277d15 Console: internal changes 17 years ago
Simon McVittie 129ada9101 services/presence/: remove. Use projects/presence-service git repo instead 17 years ago
Eduardo Silva 9ea6b18027 Merge branch 'master' of git://dev.laptop.org/sugar 17 years ago
Eduardo Silva 7985a05274 Console: fix reading log files 17 years ago
Simon McVittie cd12b59967 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 17 years ago
Simon McVittie 22b1338ac5 services/presence/server_plugin: special-case the Owner when IDing buddies.
We always know who we are, so don't need to inspect our own handle or anything.
17 years ago
Simon McVittie b362ed625c services/presence/server_plugin: fix thinko - take the right arguments to _subscribe_members_changed_cb 17 years ago
Simon McVittie a54aaa54be services/presence/presenceservice: look up buddies by key-ID if we don't know the full key yet. 17 years ago
Simon McVittie f90de752f6 services/presence/presenceservice: weakly reference Buddy objects in _buddies
This makes sure we re-use an existing Buddy object if it's still referenced
somewhere, rather than trying to make another and fighting over the object path.
17 years ago
Simon McVittie fd4e514e21 services/presence/buddy: Fix thinko - register Owner with correct objid
Previously the keyid/ prefix was missing.
17 years ago
Simon McVittie ee6c1b4283 services/presence/: Have joined Activities track membership via group interface.
This allows us to ignore the (trivially spoofable) PEP info for activities
that we're actually in, in favour of looking at the actual members.
17 years ago
Simon McVittie 87446bfb7f services/presence/buddyiconcache: remove unused import of sugar.util 17 years ago
Simon McVittie 6957446167 services/presence/: Make Activities responsible for tracking their members.
Add a signal to notify the PS when all members have gone away.
17 years ago
Simon McVittie 9d812430bf services/presence/psutils.py: don't bother using sugar.util, it's easier to use hexdigest or sha directly 17 years ago
Simon McVittie 2f8ef7bd3b services/presence/test_psutils: trivial check for pubkey_to_keyid() 17 years ago
Simon McVittie ea892796ae services/presence/Makefile.am: Include test_psutils.py in "make check" 17 years ago
Marco Pesenti Gritti 53d64a0536 Use the commit id for the snapshot name 17 years ago
Marco Pesenti Gritti 0c77275ba7 Very first go at the object type registry. 17 years ago
Simon McVittie a4a06206e3 services/presence/: identify Buddies by "key ID" (pubkey hash), not whole key.
This allows us to create Buddy objects as soon as we see a contact on the
server. For contacts not on trusted servers, or seen in anonymous MUCs, we
create a Buddy identified by JID instead (so we have some way to talk
about the anonymous contact within the Sugar API).

The concept of "trusted server" means a server which we trust to validate that
users with a keyID as the username part of their JID do in fact have that key.
Currently we just pretend that olpc.collabora.co.uk does this - in future, the
school servers will do this validation by using key rather than password
authentication.

Also create Buddy object paths based on the keyID or JID (for easier debugging).
17 years ago
Simon McVittie 5dacfdd365 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 17 years ago
Simon McVittie 706830c489 services/presence/server_plugin: Don't watch MembersChanged in activities.
My plan is now to do this in the Activity class, once the PS has a reliable
way to map handles to buddies.
17 years ago
Simon McVittie aad2afdae2 services/presence/server_plugin: Use set operations to update the subscribe set 17 years ago
Simon McVittie 7aee70e047 services/presence/pstest: Add Red Hat/Collabora GPL v2+ notice 17 years ago
Simon McVittie 7583080cd4 services/presence/psutils: Add pubkey_to_keyid() and escape_identifier() 17 years ago
Dan Williams 8c70ff2d86 Fix non-NM IP4 address detection 17 years ago
Dan Williams c1fc93b2af Fix syntax error 17 years ago
Simon McVittie 3d3e4be65e services/presence/activity: Validate object path early 17 years ago
Simon McVittie 9721436536 services/presence/: Pass the SessionBus around, instead of a BusName object.
Delay making the BusName object until after the PS object has been exported,
to guarantee race-free activation.
17 years ago
Simon McVittie ad33f7dfdd services/presence/buddy: Improve docstring; remove unused property _object_id 17 years ago
Simon McVittie 1fa97c3d93 services/presence/buddy: Set attributes more concisely, improve docstrings 17 years ago
Simon McVittie 56b95264cf services/presence/psutils, buddy: Track NameOwnerChanged in IP4AddressMonitor
This means Buddy and its subclasses no longer need to care about
NameOwnerChanged at all.

The old code might not have worked anyway, since it was watching for
NameOwnerChanged on the session bus, but invoking NM methods on the system bus.
17 years ago
Simon McVittie fdd8c315cf services/presence/buddy: Use add_signal_receiver to connect signals.
This means we don't need to care whether the Sugar shell is actually running -
if it is, we'll get its signals, and if it's not, obviously it can't send us
any signals!
17 years ago
Simon McVittie 7b0d65a211 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 17 years ago
Simon McVittie eafd338d09 services/presence/buddy: Stop treating server, key_hash, registered as GObject properties.
They're not handled in the inherited do_set_property()/do_get_property(), so
won't work as properties, and there seems to be no need for them to be
properties at all.
This fixes the following assertion when importing buddy:

Warning: g_object_class_install_property: assertion `pspec->flags & G_PARAM_WRITABLE' failed
  type_register(cls, namespace.get('__gtype_name__'))
17 years ago
Simon McVittie a868f6eb9c services/presence/psutils: Re-order imports conventionally, without dbus.glib.
Importing dbus.glib has a side-effect (it sets up the default main loop
integration) so it's not something a module should do.
17 years ago
Simon McVittie 5bf10edaee services/presence/buddy: remove trailing whitespace, wrap long lines 17 years ago
Simon McVittie a5ba8541a4 services/presence/activity: wrap long lines, remove trailing whitespace 17 years ago
Dan Williams c1346a5303 Retry connections when TP connection attempts fail 17 years ago
Simon McVittie b96de811d3 services/presence/server_plugin: fix logging of join/share error 17 years ago
Simon McVittie 7b20bacdf5 services/presence/presenceservice: check against None with 'is' 17 years ago