Simon McVittie
b0c7a0546d
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
...
Conflicts:
NEWS
2007-10-31 11:58:44 +00:00
Simon McVittie
2e86ad91b9
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-10-30 16:50:23 +00:00
Simon McVittie
5abcb4e8dd
Encode nickname in UTF-8 when writing it out to .sugar/*/config ( #4518 )
2007-10-30 16:10:02 +00:00
Simon McVittie
4391d4777a
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
...
Conflicts:
NEWS
2007-10-30 12:38:32 +00:00
Simon McVittie
249521253d
Do some standard Tubes boilerplate in sugar.presence, so activities don't have to ( #4503 )
2007-10-29 17:21:33 +00:00
Simon McVittie
ce67563b09
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-10-17 16:10:13 +01:00
Simon McVittie
3227653cd3
Avoid misleading warning every time an activity starts ( #4266 )
2007-10-17 12:53:24 +01:00
Simon McVittie
4f41f300d8
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
...
Conflicts:
NEWS
2007-10-17 11:54:33 +01:00
Simon McVittie
48bc73d0c4
Try to make sugar.presence log messages less misleading ( #4027 )
2007-10-16 17:51:36 +01:00
Simon McVittie
e81ed53d00
Update NEWS ( #3905 , #3909 )
2007-10-01 16:05:09 +01:00
Simon McVittie
ff509f5030
Use 3 second timeout for blocking calls to NetworkManager, not 3000 seconds! ( #3905 )
2007-10-01 16:01:54 +01:00
Simon McVittie
d60cc6ae39
activityfactory: Cope with dbus-python 0.82.2's fix to non-default timeouts. In 0.82.1 async call timeouts were wrongly in milliseconds, in >= 0.82.2 they are correctly in seconds. Synchronous timeouts have always been in seconds.
...
This patch can be simplified once dbus-python gets into builds (#3903 ).
2007-09-27 20:57:44 +02:00
Simon McVittie
0b5506f3e3
Update NEWS
2007-09-24 12:04:00 +01:00
Simon McVittie
a2e7d03686
Refactoring and beginnings of scope-change support in client library (partially addresses #3378 )
2007-09-24 12:02:51 +01:00
Simon McVittie
bc49fc4257
When joining an activity, pick up its sharing scope.
...
This avoids trying to re-share already shared activities in order to invite someone (#3364 )
2007-09-12 12:35:39 +01:00
Simon McVittie
19d72d4074
Update NEWS
2007-08-30 15:41:54 +01:00
Simon McVittie
93dd18ff0a
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-08-30 15:38:05 +01: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
02a727198f
sugar.activity.activity.Activity.share: Add comment indicating how to change activity privacy after creation
2007-08-30 12:13:31 +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
Simon McVittie
d93122bf5e
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-08-14 20:24:01 +01:00
Simon McVittie
7368429ad6
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-08-11 13:16:13 +01:00
Simon McVittie
df3069a931
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-08-07 13:43:27 +01:00
Simon McVittie
96023f3e42
Fix regeneration of ./configure from configure.ac when using make
...
To use an m4 macro library you need three things:
* configure.ac mentions it (OK)
* autogen.sh mentions it (OK)
* Makefile.am mentions it (fixed by this patch)
Omission of the third part means that when you change configure.ac and run
make, ./configure is rebuilt without using the m4 directory, so autoconf
doesn't load python.m4 and the rebuild fails.
2007-08-07 13:13:23 +01:00
Simon McVittie
ee68ed1fb9
Handle PropertyChanged signal
2007-07-25 17:58:12 -04:00
Simon McVittie
d35166842a
Console ps_watcher: avoid misleading user in info messages
2007-07-25 16:08:33 -04:00
Simon McVittie
9885b892a2
Console ps_watcher: Log signals as well as errors.
...
Correctly remove activity from buddy's list when buddy leaves.
2007-07-25 13:26:28 -04:00
Simon McVittie
df5ebb32e0
Show channels, handles, activity participants, buddy activities, errors
2007-07-25 13:09:51 -04:00
Simon McVittie
088c7612e3
Add basic activity and buddy properties to PS tab in devel console.
...
Make columns sortable and resizable.
2007-07-25 11:08:36 -04:00
Simon McVittie
087f6c957d
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-07-25 10:30:51 -04:00
Simon McVittie
0afad46773
Add a basic Presence Service tab to the developer console.
...
* Newly added activities and buddies appear in bold for 5 seconds.
* Removed activities and buddies stay in the list with strikethrough applied
for 5 seconds, after which they vanish.
* Columns other than "object path" don't do anything.
* In the object path column, the common prefix is replaced by ".../".
2007-07-25 10:30:15 -04:00
Simon McVittie
5ebcf5eda9
Include timestamps (with 100 us resolution) in Sugar logfiles, to allow debugging of IPC and timeouts
2007-07-11 21:30:41 +01:00
Simon McVittie
2de8072d5f
sugar-emulator: Save Salut as well as Gabble logs
2007-06-21 15:10:56 +01:00
Simon McVittie
129ada9101
services/presence/: remove. Use projects/presence-service git repo instead
2007-06-06 16:29:46 +01:00
Simon McVittie
ef369e97de
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-05-30 19:33:14 +01:00
Simon McVittie
cd12b59967
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-05-30 17:43:31 +01:00
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.
2007-05-30 17:43:16 +01:00
Simon McVittie
b362ed625c
services/presence/server_plugin: fix thinko - take the right arguments to _subscribe_members_changed_cb
2007-05-30 17:42:19 +01:00
Simon McVittie
a54aaa54be
services/presence/presenceservice: look up buddies by key-ID if we don't know the full key yet.
2007-05-30 17:41:08 +01:00
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.
2007-05-30 17:40:31 +01:00
Simon McVittie
fd4e514e21
services/presence/buddy: Fix thinko - register Owner with correct objid
...
Previously the keyid/ prefix was missing.
2007-05-30 17:38:58 +01:00
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.
2007-05-30 17:36:42 +01:00
Simon McVittie
87446bfb7f
services/presence/buddyiconcache: remove unused import of sugar.util
2007-05-30 17:04:16 +01:00
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.
2007-05-29 16:12:05 +01:00
Simon McVittie
9d812430bf
services/presence/psutils.py: don't bother using sugar.util, it's easier to use hexdigest or sha directly
2007-05-29 16:11:07 +01:00
Simon McVittie
2f8ef7bd3b
services/presence/test_psutils: trivial check for pubkey_to_keyid()
2007-05-29 16:10:19 +01:00
Simon McVittie
ea892796ae
services/presence/Makefile.am: Include test_psutils.py in "make check"
2007-05-29 14:05:12 +01:00
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).
2007-05-28 17:25:52 +01:00
Simon McVittie
5dacfdd365
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-05-28 17:10:54 +01:00
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.
2007-05-28 15:56:39 +01:00
Simon McVittie
aad2afdae2
services/presence/server_plugin: Use set operations to update the subscribe set
2007-05-28 15:54:40 +01:00
Simon McVittie
7aee70e047
services/presence/pstest: Add Red Hat/Collabora GPL v2+ notice
2007-05-28 14:46:13 +01:00
Simon McVittie
7583080cd4
services/presence/psutils: Add pubkey_to_keyid() and escape_identifier()
2007-05-28 14:44:49 +01:00
Simon McVittie
3d3e4be65e
services/presence/activity: Validate object path early
2007-05-25 16:30:36 +01:00
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.
2007-05-25 16:21:02 +01:00
Simon McVittie
ad33f7dfdd
services/presence/buddy: Improve docstring; remove unused property _object_id
2007-05-25 12:26:53 +01:00
Simon McVittie
1fa97c3d93
services/presence/buddy: Set attributes more concisely, improve docstrings
2007-05-25 12:24:32 +01:00
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.
2007-05-25 12:14:39 +01:00
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!
2007-05-25 12:06:57 +01:00
Simon McVittie
7b0d65a211
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-05-25 11:39:45 +01:00
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__'))
2007-05-25 11:34:54 +01:00
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.
2007-05-25 11:30:36 +01:00
Simon McVittie
5bf10edaee
services/presence/buddy: remove trailing whitespace, wrap long lines
2007-05-25 10:56:41 +01:00
Simon McVittie
a5ba8541a4
services/presence/activity: wrap long lines, remove trailing whitespace
2007-05-25 10:56:14 +01:00
Simon McVittie
cb84d5f8fd
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
2007-05-24 19:05:58 +01:00
Simon McVittie
b33dd7cfab
sugar.presence.presenceservice: Add get_buddy_by_telepathy_handle()
2007-05-24 19:04:35 +01:00
Simon McVittie
b96de811d3
services/presence/server_plugin: fix logging of join/share error
2007-05-24 18:59:32 +01:00
Simon McVittie
7b20bacdf5
services/presence/presenceservice: check against None with 'is'
2007-05-24 18:59:25 +01:00
Simon McVittie
0410ed28ba
services/presence/presenceservice: add some missing in_signature arguments
2007-05-24 18:59:19 +01:00
Simon McVittie
570a485d84
services/presence/presenceservice: don't use deprecated dbus.glib
...
Importing dbus.glib has strange magical side-effects. Instead, make it more
explicit that the default dbus-python main loop is being set to the GLib main
loop.
2007-05-24 18:59:13 +01:00
Simon McVittie
2abcd89c1f
services/presence/: Move internal_get_activity to TestPresenceService
2007-05-24 18:59:06 +01:00
Simon McVittie
f7ba2aa1e2
services/presence/: separate test code into a separate module
2007-05-24 18:58:58 +01:00
Simon McVittie
f75747015d
services/presence/activity: Document constructor arguments
2007-05-24 18:58:50 +01:00
Simon McVittie
e7f10dd2aa
services/presence/presenceservice: fix broken syntax
2007-05-24 18:58:43 +01:00
Simon McVittie
4e188059e3
services/presence/server_plugin: Use telepathy-python helper function request_channel()
...
Also request the subscribe and publish handles at the same time, to reduce
D-Bus roundtrips.
2007-05-24 18:58:35 +01:00
Simon McVittie
a450a82e59
services/presence/server_plugin: Call _handle_connection_status_change with appropriate arguments
...
Also reduce number of methods by using nested functions for trivial Connect()
reply handlers.
2007-05-24 18:58:28 +01:00
Simon McVittie
e13728f347
services/presence/server_plugin: various cosmetic cleanups
...
* wrap most long lines at 80 characters
* don't preformat log messages, let the logging framework do it
2007-05-24 18:58:17 +01:00
Simon McVittie
0d5dd24166
services/presence/server_plugin: delete unused InvalidBuddyError
2007-05-24 18:58:10 +01:00
Simon McVittie
e11389d813
services/presence/server_plugin: reformat, document signal definitions
2007-05-24 18:58:02 +01:00
Simon McVittie
1026fce013
services/presence/presenceservice: various cosmetic cleanups
...
* wrap long lines at 80 characters
* don't preformat log messages, let the logging framework do it
* eradicate trailing whitespace
2007-05-24 18:57:53 +01:00
Simon McVittie
55c0d9cb07
services/presence/server_plugin: remove trailing whitespace
2007-05-24 18:56:42 +01:00
Simon McVittie
2d76475682
services/presence/psutils: Remove bytes_to_string - no longer needed
2007-05-24 18:56:35 +01:00
Simon McVittie
43453124bd
services/presence/presenceservice: Make bytes_to_string() unnecessary by requesting a ByteArray from dbus-python
2007-05-24 18:56:29 +01:00
Simon McVittie
c3e54133a4
services/presence/server_plugin: make bytes_to_string() unnecessary by requesting a dbus.ByteArray
2007-05-24 18:56:20 +01:00
Simon McVittie
cb279a1418
services/presence/server_plugin: reorder imports
2007-05-24 18:56:12 +01:00
Simon McVittie
417fd7cc8a
services/presence/server_plugin: Use more conventional conditional import for md5
2007-05-24 18:56:06 +01:00
Simon McVittie
71951848a6
services/presence/server_plugin: error_handler always takes exactly 1 argument.
...
Instead of using lambdas with arbitrary arguments, use a lambda that takes
1 argument.
2007-05-24 18:55:57 +01:00
Simon McVittie
f69e06247f
services/presence/server_plugin: Use non-deprecated handle type constants.
...
(CONNECTION_HANDLE_TYPE_foo is deprecated in favour of HANDLE_TYPE_foo.)
Also rewrap imports to be 80 characters wide.
2007-05-24 18:55:50 +01:00
Simon McVittie
e7e6c28394
.gitignore: Don't include vim swapfiles in git status
2007-05-24 18:55:38 +01:00
Simon McVittie
3c2bdfc346
services/presence/server_plugin: implement _new_channel_cb asynchronously
2007-05-24 18:55:31 +01:00
Simon McVittie
3444acae8f
services/presence/server_plugin: Stop using private API of telepathy-python and dbus-python
2007-05-24 18:52:26 +01:00
Simon McVittie
b16bb9d6cc
services/presence/server_plugin: Fix error logging for RequestHandles
2007-05-24 18:52:15 +01:00
Simon McVittie
f4327759fc
services/presence/server_plugin: When creating a room, make it non-anonymous.
...
Otherwise clients joining the room won't be able to convert other clients'
channel-specific handles into global handles in order to make Buddy objects,
because they're not the moderator of the room.
2007-05-24 18:48:13 +01:00
Simon McVittie
7b1a38af1c
services/presence/: keep track of the owner's Telepathy handles
2007-05-24 18:47:55 +01:00
Simon McVittie
10e1daf8c6
services/presence/buddy.py: Don't allow the Owner to disappear, even if they have no handles left
2007-05-24 18:46:16 +01:00
Simon McVittie
a6e809a9ef
services/presence/: move more of the handle tracking into the Buddy object
2007-05-24 18:46:09 +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
161605ccb1
services/presence/server_plugin: Initialize attributes with empty values
2007-05-24 17:45:05 +01:00