37 Commits (7acfbd070fa207dff309383da6e743ad2b9843c3)

Author SHA1 Message Date
Sascha Silbe 7acfbd070f style cleanup: prefer ' for strings
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>
14 years ago
Tomeu Vizoso 56679a3de6 Rename ActivityHandle.handle_invite to ActivityHandle.invited 14 years ago
Tomeu Vizoso 6a12411477 Add copyright statement due to the collaboration refactoring 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 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 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
Aleksey Lim 161aec771e Display a message when an activity fails to start (based on wadeb patches) #1447 14 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.
14 years ago
Simon Schampijer e1d4afe13e Add signal listener functionality to the DS #1197 (silbe) 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
Sascha Silbe c9e63eb8ea PEP8 white space and long line fixes 15 years ago
Sascha Silbe ecdaf6b795 trim EOL (end-of-line) spaces on source files 15 years ago
Aleksey Lim 9a65089978 Fix typos in 0342a24e2d 15 years ago
Aleksey Lim 0342a24e2d Sugar crashing when saving a journal entry upon closing an activity #1123 15 years ago
Sascha Silbe 0a8b1261eb don't hardcode Rainbow activity permissions 15 years ago
Sascha Silbe 496090fe62 let the logger do the formatting 15 years ago
Tomeu Vizoso 10e84fe8fa Remove list of Rainbow exemptions 15 years ago
Tomeu Vizoso 43167172b9 style fixes 15 years ago
Michael Stone a65c8d2148 Get activities launching with rainbow-0.8.x.
Future extensions:

a) we are now able to reliably detect when an activity's main process has
exited. We should take advantage of this to give better feedback on activity
crashes; e.g. by turning the frame's activity-icon into an error icon and by
inserting the activity's log into the datastore so that it appears in the
Journal.

b) in the future, I'd like rainbow to provide more narrow interfaces for
manipulating jails; e.g. for garbage-collecting them, nuking their contents, or
for reusing them. Please consider this an invitation to show me which interfaces
would work best for Sugar.

P.S. - Thanks to Sascha Silbe for testing and for improvements to this patch.
16 years ago
Tomeu Vizoso e2696086e6 Switch to existing instance of an activity if it's already running #410 16 years ago
Marco Pesenti Gritti b58182a970 Mark modules as STABLE/UNSTABLE/DEPRECATED. 16 years ago
Tomeu Vizoso 611bd9ccda Only absolutize the command when it doesnt contain already a slash 16 years ago
Tomeu Vizoso 0b7def1788 If the binary to launch is inside the bundle dir, use an absolute path. 16 years ago
Tomeu Vizoso a13ca6d664 #8840 Add missing byte_arrays=True 16 years ago
Marco Pesenti Gritti 5c6c7ab1d1 The activity registry is now private to the shell.
Changed the activityfactory to take a bundle instead of a bundle_id
so that it doesn't depend on the registry.
16 years ago
Marco Pesenti Gritti 3f08644b32 Remove workaround for old dbus-python. 16 years ago
Tomeu Vizoso afb63981fa Set the correct locale path for system activities 16 years ago
Marco Pesenti Gritti 7eafbe9ce9 Failure to close descriptor is actually expected. Don't bloat the logs. 16 years ago
Marco Pesenti Gritti 6a5d0c837b Another pylint fix. 16 years ago
Marco Pesenti Gritti a151135e2e Fix a few pylint warnings. 16 years ago
C. Scott Ananian 28586edb2f Trac #8532: remove SIGCHLD handler, which interacts poorly with threads.
Threads and signals don't get along too well together.  Instead, use
gobject's spawn_async functionality which already has the necessary zombie-
reaping integrated into the gobject event loop.
16 years ago
Tomeu Vizoso 6c1eed78d8 s/print/logging.debug 16 years ago
Marco Pesenti Gritti 00c8a5897b Keep going even if the disk is full. Patch by cscott.
Fix #7587
16 years ago
Simon Schampijer 7d40d1d74d Adopt to name change of log activity
adopt to name change that log activity keeps on running outside of rainbow
16 years ago
Marco Pesenti Gritti 72c2a1d770 Use a src directory consistently with base and shell. 16 years ago