Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/presence/activity.py
Commit message (Collapse)AuthorAgeFilesLines
* presence: use RoomConfig1 to configure channel properties (#3629)Daniel Drake2012-07-031-8/+53
| | | | | | | | | | | | | | | | | | | | | | This code was still using regular Telepathy properties to set important configuration such as Anonymous=False. However, as of Telepathy specification 0.24.0, these properties have gone away. http://telepathy.freedesktop.org/spec/Channel_Type_Text.html Changed in 0.24.0. This interface used to have a bunch of clunky Telepathy.Properties. They have been removed in favour of D-Bus properties on the Room2, Subject2 and RoomConfig1 interfaces. Switch to using RoomConfig1 (where available) to set this configuration. The invite-restricted flag is no longer available and actually seems to have been removed a long while back. Fixes sharing of activities over gabble on new platforms such as Fedora 17. Signed-off-by: Daniel Drake <dsd@laptop.org>
* Only show joined buddies on sharer side, part of OLPC#10578Simon Schampijer2011-05-311-0/+1
| | | | | | | This is a follow-up patch to 95b4eeec758ffa729d0dbb219b21d428115fcc74 Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Shared activity does not announce the 'buddy-left' signal OLPC #10800Simon Schampijer2011-05-231-1/+1
| | | | | | | | | This fixes a copy and paste error. A good test case is the Memorize activity since we listen for the 'buddy-left' signal there to update the members list inside the activity. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
* Store all the buddies that have been joined in the activity metadata OLPC #10578Simon Schampijer2011-03-311-1/+5
| | | | | | | | | | | Before only the buddies that were present when closing the activity were logged in the Journal. This patch does add another dictionary '_joined_buddies' to keep track of the users that did join. The '_buddies' dictionary keeps on tracking the users currently in the activity. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Sascha Silbe <silbe@activitycentral.com>
* style cleanup: prefer ' for stringsSascha Silbe2010-11-231-13/+13
| | | | | | | | | Tomeu prefers ' for strings, so let's use it wherever we don't have a good reason to use ". Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: fix inline comment spacingSascha Silbe2010-11-231-5/+10
| | | | | | | | pep8 wants inline comments to be prefixed by at least two spaces. Let's just move them to a separate line as that's easier to read anyway. Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: ensure lines are shorter than 80 charactersSascha Silbe2010-11-231-1/+2
| | | | | | | | | | Caught by PEP8. This is important for Sugar because the XO has a small screen where long lines would make the code hard to understand (because you need to constantly scroll horizontally). Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer<simon@schampijer.de> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: fix number of blank linesSascha Silbe2010-11-231-0/+3
| | | | | | | | Caught by pep8. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* sugar.presence: Remove dead code and make clear which methonds are deprecatedTomeu Vizoso2010-08-301-8/+0
|
* Misc. pylint fixesTomeu Vizoso2010-08-201-1/+3
|
* Wrap lines with more than 80 charsTomeu Vizoso2010-08-201-7/+17
|
* Remove some unused importsTomeu Vizoso2010-08-201-1/+0
|
* Remove misleading comment, we are already listening ClosedTomeu Vizoso2010-08-201-2/+0
|
* Set the properties of the channel after we have joined itTomeu Vizoso2010-08-201-103/+12
|
* Translate handles if the channel has channel-specific handles (gabble)Tomeu Vizoso2010-08-201-48/+80
|
* Track the buddies inside the activityTomeu Vizoso2010-08-201-69/+64
|
* Handle invitations using Mission Control 5.Tomeu Vizoso2010-08-201-13/+13
| | | | | | | | | | | | | | | | | src/sugar/activity/activity.py: If the activity is being invoked to handle an invite, create a Client.Handler instance and share the activity when HandleChannels is invoked. src/sugar/activity/activityfactory.py, src/sugar/activity/activityhandle.py, src/sugar/activity/main.py: Add a -i switch that indicates to the activity that it should handle the channel from an invitation. src/sugar/presence/activity.py: Expose Activity.room_handle. src/sugar/presence/presenceservice.py: Add get_activity_by_handle(). src/sugar/presence/util.py: Add get_account_for_connection().
* Identify buddies and activities by their account and ids insteadTomeu Vizoso2010-08-201-15/+31
| | | | of connection and handle.
* Only add ourselves to a channel if we are in local_pendingTomeu Vizoso2010-08-201-5/+5
|
* Implement inviting buddies to a private activityTomeu Vizoso2010-08-201-8/+13
|
* Implement Activity.get_channels()Tomeu Vizoso2010-08-201-3/+7
|
* Emit the buddy-left signalTomeu Vizoso2010-08-201-0/+3
|
* Implement leaving an activityTomeu Vizoso2010-08-201-10/+9
|
* Emit the buddy-joined signalTomeu Vizoso2010-08-201-1/+19
|
* Refactor the logic for sharing into _ShareCommand and implementTomeu Vizoso2010-08-201-98/+370
| | | | joining a shared instance with _JoinCommand.
* Replace enough of the old PS so we can share an activity instance publicallyTomeu Vizoso2010-08-201-21/+110
| | | | on the network.
* Replace enough of the old PS so we can join an activity instance on the network.Tomeu Vizoso2010-08-201-112/+64
| | | | | | | | | | | | | | | | * src/sugar/activity/activity.py: Get the shared activity wrapper from sugar.presence. * src/sugar/activity/activityfactory.py: Disable checking in the PS for activity_id duplicates. * src/sugar/presence/activity.py: Remove the PS dependency and query Telepathy directly. Implemented enough to join an activity. * src/sugar/presence/buddy.py: Remove the PS dependency and query Telepathy directly. Implemented enough to join an activity. Added an Owner subclass of Buddy() * src/sugar/presence/presenceservice.py: Remove the PS dependency and query Telepathy directly. Implemented enough to join an activity. * src/sugar/presence/util.py: Add ConnectionManager for discovering and tracking connections.
* PEP8 white space and long line fixesSascha Silbe2009-08-251-16/+18
|
* trim EOL (end-of-line) spaces on source filesSascha Silbe2009-08-251-14/+14
|
* Expose telepathy_room_handle (cassidy) #757Tomeu Vizoso2009-06-151-2/+3
|
* Mark modules as STABLE/UNSTABLE/DEPRECATED.Marco Pesenti Gritti2008-10-281-1/+5
|
* Several pylint fixes.Marco Pesenti Gritti2008-08-101-3/+3
|
*