190 Commits (4d978fda14f7029dca7ec9925ac3716c56a74875)

Author SHA1 Message Date
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>
14 years ago
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>
14 years ago
Simon Schampijer c7a80a1e56 Add new numbering scheme #2425
- add class NormalizedVersion to parse and compare the new activity versions
- change the bundlebuilder and activitybundle to use the new scheme, instead
of an int version we expect a string that matches the format defined in
NormalizedVersion
14 years ago
Tomeu Vizoso 4fb2943ec4 Fix running multiple instances of Browse by adapting to API changes #2404
* sugar/presence/presenceservice.py: Specify the D-Bus interface when
  calling ActivityProperties.GetActivity
* sugar/activity/main.py: Set a default for the --invite option and
  make the create() D-Bus method accept a{sv} so we can pass the
  boolean value.
14 years ago
Tomeu Vizoso d156ff56a8 Address comments from Simon's review 14 years ago
Tomeu Vizoso 1af1bc9713 Address several nitpicks from Marco 14 years ago
Tomeu Vizoso 56679a3de6 Rename ActivityHandle.handle_invite to ActivityHandle.invited 14 years ago
Tomeu Vizoso d66eb39c9b Remove unused constant 14 years ago
Tomeu Vizoso 6a12411477 Add copyright statement due to the collaboration refactoring 14 years ago
Tomeu Vizoso fdfacaf26f Misc. pylint fixes 14 years ago
Tomeu Vizoso ead42a6945 Remove some unused imports 14 years ago
Tomeu Vizoso 24df594203 Add the MAC address to the data that gets hashed to get an activity_id 14 years ago
Tomeu Vizoso 633214e2b6 Call the new invite method in ActivityService InviteCommand and keep a stub for Invite 14 years ago
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().
14 years ago
Tomeu Vizoso bd3a4ca747 Take into account the "private" property when updating the scope toolbutton 14 years ago
Tomeu Vizoso fbee730549 Implement inviting buddies to a private activity 14 years ago
Tomeu Vizoso a0b9394846 Replace enough of the old PS so we can share an activity instance publically
on the network.
14 years ago
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.
14 years ago
Bernie Innocenti e90fccfd37 Use set_toolbar_box() in example code.
The set_toolbox() method is obsolete, so let's not advertise it.

Signed-off-by: Bernie Innocenti <bernie@codewiz.org>
14 years ago
Bernie Innocenti e2ab351b36 Set default accelerators for Copy and Paste buttons 14 years ago
Simon Schampijer 3aa0995096 Bundelbuilder should not use localized activity name #1968 (Walter Bender)
The localized activity name is only used for
user-facing strings. The .xo and .tar files are
left in the original name.
14 years ago
Aleksey Lim 845d2534e6 Reset timeout delay on every TitleEntry change #1948 14 years ago
Aleksey Lim 161aec771e Display a message when an activity fails to start (based on wadeb patches) #1447 15 years ago
Simon Schampijer 2a52c9493b A little bit of pylint cleanup 15 years ago
Tomeu Vizoso d006092d37 Log saving errors in activities #1703 15 years ago
James Cameron f8ef93bd21 Removes the use of O_SYNC on logs #1656
With O_SYNC on open of log files, on systems with slow filesystem random
write performance, there is random activity startup time.
15 years ago
Aleksey Lim 6921bcd67d Do not fail while closing object less activities #1714 15 years ago
Aleksey Lim 3bf70d642c Override canvas property in Activity class #1795 15 years ago
Sayamindu Dasgupta e6aa91ba3f Merge branch 'master' of git://git.sugarlabs.org/sugar-toolkit/gettext-enhancements 15 years ago
Sayamindu Dasgupta d00d9b6431 More cleanups for i18n.py 15 years ago
Sayamindu Dasgupta 1b600b147d Make the dictionary sorting a bit more sensible 15 years ago
Sayamindu Dasgupta 4552050136 Clean up docstring 15 years ago
Sayamindu Dasgupta 1817caf30f Consistent variable names 15 years ago
Sayamindu Dasgupta ffe3504e0a Should be and, and not or 15 years ago
Sayamindu Dasgupta 85840b269f Style and PEP8 fixes 15 years ago
Tomeu Vizoso b5bcbe2ed4 Remove file that was there by mistake 15 years ago
Sayamindu Dasgupta 415f3a3066 Describe the args of the i18n methods 15 years ago
Sayamindu Dasgupta 259fca2caa Import in two lines instead of one 15 years ago
Simon Schampijer e1d4afe13e Add signal listener functionality to the DS #1197 (silbe) 15 years ago
Sayamindu Dasgupta ef093d395e Update Makefile.am 15 years ago
Sayamindu Dasgupta 173a402701 Code for language pack support 15 years ago
Sascha Silbe 9c77febcf1 locate rainbow using PATH instead of hardcoding the location (#1436) 15 years ago
Sascha Silbe 1d8b1b98cb don't use rainbow if it has been uninstalled, but the config file remains (#1317)
Some distros retain config files after removing packages, so /etc/olpc-security
might exist even if rainbow is not installed.

Signed-off-by: Sascha Silbe <sascha@silbe.org>
15 years ago
Daniel Drake 709d44d602 Apply activity font settings earlier (#1607)
Fixes some minor changes in toolbar appearance that my previous
work unintentionally introduced.
15 years ago
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.
15 years ago
Aleksey Lim 8f52b0a8f4 Present windows in non-active process #1423 15 years ago
Tomeu Vizoso 957c0b4c0f Save activity_id if its not yet in the DS #1276 15 years ago
Aleksey Lim acdbae5d4c _Typo Color of sugar.activity.widgets.ActivityButton is owners all time despite of 'icon-color' metadata property #1368 15 years ago
Aleksey Lim 9f981bb5dc Color of sugar.activity.widgets.ActivityButton is owners all time despite of 'icon-color' metadata property #1368 15 years ago
Tomeu Vizoso df89c1bf0b Close tube after the activity window is closed #1296 15 years ago