Commit Graph

79 Commits

Author SHA1 Message Date
Sascha Silbe
9c7769cc21 PEP8 cleanup: fix whitespace before ':'
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:33 +01:00
Sascha Silbe
814ab2ddf9 PEP8 cleanup: don't use has_key()
has_key() has been deprecated for quite some time now.

Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:32 +01:00
Sascha Silbe
4d978fda14 PEP8 cleanup: ensure lines are shorter than 80 characters
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>
2010-11-23 17:14:32 +01:00
Sascha Silbe
e2231d5620 PEP8 cleanup: fix number of blank lines
Caught by pep8.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:32 +01:00
Tomeu Vizoso
1af1bc9713 Address several nitpicks from Marco 2010-08-20 15:33:54 +02:00
Tomeu Vizoso
56679a3de6 Rename ActivityHandle.handle_invite to ActivityHandle.invited 2010-08-20 15:33:54 +02:00
Tomeu Vizoso
d66eb39c9b Remove unused constant 2010-08-20 15:33:54 +02:00
Tomeu Vizoso
fdfacaf26f Misc. pylint fixes 2010-08-20 15:33:54 +02:00
Tomeu Vizoso
ead42a6945 Remove some unused imports 2010-08-20 15:33:54 +02:00
Tomeu Vizoso
363f828205 Handle invitations using Mission Control 5.
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().
2010-08-20 15:33:53 +02:00
Tomeu Vizoso
fbee730549 Implement inviting buddies to a private activity 2010-08-20 15:33:53 +02:00
Tomeu Vizoso
a0b9394846 Replace enough of the old PS so we can share an activity instance publically
on the network.
2010-08-20 15:33:52 +02:00
Tomeu Vizoso
98cc77f1fb Replace enough of the old PS so we can join an activity instance on the network.
* 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.
2010-08-20 15:33:52 +02:00
Simon Schampijer
2a52c9493b A little bit of pylint cleanup 2010-03-10 10:23:30 +01:00
Tomeu Vizoso
d006092d37 Log saving errors in activities #1703 2010-03-09 22:33:23 +01:00
Aleksey Lim
6921bcd67d Do not fail while closing object less activities #1714 2010-03-09 18:56:21 +00:00
Aleksey Lim
3bf70d642c Override canvas property in Activity class #1795 2010-03-08 19:01:53 +00:00
Daniel Drake
709d44d602 Apply activity font settings earlier (#1607)
Fixes some minor changes in toolbar appearance that my previous
work unintentionally introduced.
2009-12-24 14:41:52 +00:00
Daniel Drake
634b2fcee0 Apply font configuration from GConf (#1584)
Sugar font settings are now stored in GConf. This patch applies them
to all users of sugar.style and all standard activities.
2009-12-01 16:51:14 +00:00
Aleksey Lim
8f52b0a8f4 Present windows in non-active process #1423 2009-09-29 18:33:13 +00:00
Tomeu Vizoso
957c0b4c0f Save activity_id if its not yet in the DS #1276 2009-09-19 19:02:04 +02:00
Tomeu Vizoso
df89c1bf0b Close tube after the activity window is closed #1296 2009-09-15 17:28:29 +02:00
Aleksey Lim
1b80257149 Fullscreen resizing issues #1263 2009-09-05 16:40:15 +00:00
Tomeu Vizoso
929ce5a3cb Make activity windows cover the whole screen as soon as they are mapped. 2009-09-01 10:11:59 +02:00
Sascha Silbe
c9e63eb8ea PEP8 white space and long line fixes 2009-08-25 21:12:40 +02:00
Sascha Silbe
ecdaf6b795 trim EOL (end-of-line) spaces on source files 2009-08-25 19:55:48 +02:00
Sascha Silbe
496090fe62 let the logger do the formatting 2009-08-24 12:54:02 +02:00
Aleksey Lim
353564f12c Fix review issues 2009-07-31 03:49:05 +00:00
Aleksey Lim
61ab4110fa Rename toolbar.py to toolbarbox.py 2009-07-30 15:25:30 +00:00
Aleksey Lim
b43aa43114 Move activity related widgets to sugar.activity.widgets 2009-07-30 15:08:55 +00:00
Aleksey Lim
5ee1f2a3cb Do not use jarabe module 2009-07-30 12:20:15 +00:00
Aleksey Lim
a2f20f39ff Fix review issues 2009-07-30 11:29:52 +00:00
Aleksey Lim
e03fd4ddde Minor tweaks 2009-07-30 05:43:36 +00:00
Aleksey Lim
2655a8ccad Suppress sub-palettes in radiopalette 2009-07-29 16:15:38 +00:00
Aleksey Lim
872b18a103 Fix review issues 2009-07-29 15:33:02 +00:00
Aleksey Lim
0cf445eb0f Remove redundant ctor argument from activity.ActivityToolbar() 2009-07-29 13:02:41 +00:00
Aleksey Lim
ec474da5cc Replace share combo with new share button 2009-07-29 06:41:23 +00:00
Aleksey Lim
9e9a22b2d5 Use activity icon for activity.toolbar button 2009-07-28 15:02:00 +00:00
Aleksey Lim
2088bd5f2a Add activity.keep_button 2009-07-28 11:58:31 +00:00
Aleksey Lim
095c732c9a Add activity.share_button 2009-07-28 11:50:36 +00:00
Aleksey Lim
d4cbd4150e Support legacy stop button in ActivityToolbar 2009-07-13 18:34:02 +00:00
Aleksey Lim
442034bb8b Support new toolbars widgets in activity.py 2009-07-13 01:40:23 +00:00
Tomeu Vizoso
c5e5d3aeb7 Only call read_file once on activity startup #428 2009-03-27 12:32:04 +01:00
Tomeu Vizoso
9ef619a63a Revert "Listen for map in Window instead of in Canvas (alsroot) #428"
This reverts commit eaf7afcd91.
2009-03-27 12:32:03 +01:00
Tomeu Vizoso
af4faead14 Catch all exceptions while saving #224 2009-03-03 15:22:54 +01:00
Tomeu Vizoso
eaf7afcd91 Listen for map in Window instead of in Canvas (alsroot) #428 2009-03-03 14:27:01 +01:00
Tomeu Vizoso
29cc73ae18 Let activities provide their own implementation of get_preview() #152 2009-02-25 16:09:06 +01:00
Tomeu Vizoso
ace5e73d3d Don't push to the DS a file path pointing to nowhere #258 2009-02-05 12:43:50 +01:00
Simon Schampijer
d0d4f55121 'Resume' activity window when NamingAlert is displayed #293 2009-02-02 17:45:22 +01:00
Simon Schampijer
817a981288 Enhanced the 'Name this entry dialog'
- created the canvastextview in sugar/graphics
2009-01-18 16:30:53 +01:00