Commit Graph

332 Commits

Author SHA1 Message Date
Marco Pesenti Gritti
b44a2916ba Rework sugar.logger and make activities just
redirect their output to a log.
2007-10-09 18:58:39 +02:00
Marco Pesenti Gritti
c2982f2774 Implement a sugar-launch command. Works like the old sugar-activity
but should deal fine with native activities too.
2007-10-09 15:25:24 +02:00
Marco Pesenti Gritti
6073a396b3 Rename activity service_name to bundle_id 2007-10-09 13:15:06 +02:00
Marco Pesenti Gritti
57961d17bc Leftover service initialization 2007-10-09 12:29:20 +02:00
Marco Pesenti Gritti
177ee7220a Add $bundlepath/bin to the PATH when launching an
activity.
2007-10-09 12:08:03 +02:00
Marco Pesenti Gritti
6ebe910e93 In preparation of enabling rainbow by default, remove
the factory service from the public API. The Exec field
will now launch an activity instance.
Add a -s argument to sugar-activity to enable the single
process mode for activities that really need it.
2007-10-08 14:56:12 +02:00
Tomeu Vizoso
eeae5d011f Save activity previews to the datastore as binary png images. 2007-10-05 22:39:45 +02:00
Dan Winship
2bcbde6e44 Add bundle removing methods/signals to the activity registry, and use them 2007-10-04 15:59:23 -04:00
Simon Schampijer
b8ec83c5b8 This prevented activties whith no share-scope set to set the window title 2007-09-28 16:32:22 +02: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
Marco Pesenti Gritti
e543eada4e Revert "Adapt to dbus-python API change"
This reverts commit 7391e4a3c3.
2007-09-27 20:53:41 +02:00
Marco Pesenti Gritti
7391e4a3c3 Adapt to dbus-python API change 2007-09-27 20:46:20 +02: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
Michael Stone
46357bdc66 Fixes #3723, "Fix Rainbow/Sugar Integration." 2007-09-21 17:26:58 -04:00
Simon Schampijer
2a91e02444 Copy and paste error in the EditToolbar 2007-09-21 11:37:46 +02:00
Dan Winship
f377d6e519 Redo activity bundles in terms of sugar.bundle.bundle 2007-09-20 12:20:21 -04:00
Marco Pesenti Gritti
8aecf00060 Use logging.error or dbus errors. Launch the activity
even if the dbus call on the datastore to find object_id
fails.
2007-09-15 00:08:49 +02:00
Marco Pesenti Gritti
0a666e23cf When starting an activity with activity_id but no object_id
try to figure out from the journal which object it was
associated to.
2007-09-14 16:16:54 +02: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
Marco Pesenti Gritti
971fd857e0 Hook up private activities and share invite-only
implicitly.
2007-09-11 19:59:40 +02:00
Marco Pesenti Gritti
fdb9c57e65 Handle invitations inside Activity. 2007-09-11 17:53:27 +02:00
Tomeu Vizoso
e9449d0ab0 Do sync the DS creates. 2007-09-10 17:58:01 +02:00
Tomeu Vizoso
8ced2dccbe Generate context comments in .po files. 2007-09-08 19:40:22 +02:00
Tomeu Vizoso
b3ad232b0c #2909: Make python activities more tolerant to missing metadata properties. 2007-09-08 16:11:47 +02:00
Dan Williams
9e2a9c4c02 Support moving of files to datastore when using write_file()
Using the transfer_ownership argument, activities using the default activity
datastore integration methods (namely write_file) will now tell the datastore
that it can move the files by default.  This reduces the copies required, which
is slow on flash.  For activities not using the standard APIs (Record, etc),
the datastore bindings allow the activity to specify when ownership should
transfer.
2007-09-07 21:53:32 -04:00
Dan Winship
7b760686a7 Add support for content bundles 2007-09-07 13:31:45 -04:00
Tomeu Vizoso
9858a190fd Expose the separator in the edit toolbar so it can be hidden by activities. 2007-09-07 18:08:48 +02:00
Marco Pesenti Gritti
3ae5186b7a Use the activity service name for logs rather than
the user visible name.
2007-09-04 15:55:21 +02:00
Marco Pesenti Gritti
f6239d6df8 Handle exceptions in the activity constructor so that
log messages ends up in the activity log rather than
in shell/journal.
2007-09-03 23:42:17 +02:00
Marco Pesenti Gritti
3617dd1635 Cleanup Bundle to not require SUGAR_PREFIX to
be set. Also start using properties rather than
set/getters.
2007-09-03 23:08:49 +02:00
Tomeu Vizoso
d207faddad Add tooltips to buttons in the activity toolbar. 2007-09-03 12:38:16 +02:00
Dan Williams
739b9160b1 Refactor activity share/join in Activity.__init__() to be clearer and cover all cases
Remove the 'pservice_id' attribute of the ActivityHandle too, since it was
completely pointless and should have been the same as the activity id anyway.
Share/join is handled in the Activity.__init__() method and the shell doesn't
really need to know about it at all.
2007-09-01 13:07:49 -04:00
Tomeu Vizoso
0e60f07dd2 Save the temp file for the icon with the svg suffix so Icon will recognize it as a svg. 2007-08-31 19:57:45 +02:00
Tomeu Vizoso
ad1818f985 #3063: Make the 'Keep' button in the activity toolbar create a copy of the activity in the journal. Add a copy() method for activities to use. 2007-08-31 15:43:38 +02:00
Marco Pesenti Gritti
560a914997 Make Activity update the presence service activity
name and listen to the name changes in the mesh view.
2007-08-31 11:37:42 +02:00
Simon McVittie
93dd18ff0a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-30 15:38:05 +01:00
Marco Pesenti Gritti
e455611525 with the native factory which doesn't have introspection. 2007-08-30 14:42:12 +02:00
Marco Pesenti Gritti
c082757de6 Revert "Make sure the handle dict values are string. Looks"
This reverts commit 0e45b8fcf1.
2007-08-30 14:36:20 +02: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 Schampijer
55d1acde0e get_sensitive() does not exist for a toolbar. 2007-08-29 00:40:05 +02:00
Dan Williams
8b326fda61 Re-share an activity when it gets launched from the journal if it was shared before 2007-08-28 17:07:57 -04:00
John (J5) Palmieri
f5f95f4d7b Merge branch 'master' of git+ssh://j5@dev.laptop.org/git/sugar 2007-08-27 15:51:55 -04:00
John (J5) Palmieri
c06d639487 Make D-Bus calls async on startup 2007-08-27 15:47:58 -04:00
Marco Pesenti Gritti
294a5231b9 2647, if security is enabled let rainbow launch activities.
Also notify rainbow when active activity changes.
Patch by Ashsong, had to merge it manually.
2007-08-27 18:25:45 +02:00
Tomeu Vizoso
405dafc908 Adapt to changes in the icon API. 2007-08-26 20:44:51 +02:00
Morgan Collett
fc4e4692d7 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-25 14:58:09 +01:00
John (J5) Palmieri
2cae66b0ea More follow_name_owner_changed optimiztion
* reasoning changed from a FIXME to a NOTE to explain why we need
     to follow_name_owner_changed
2007-08-24 18:25:56 -04:00
Morgan Collett
4cfc941e49 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-08-24 15:14:48 +01:00
Morgan Collett
d2261e4051 Fix sharing publicly 2007-08-23 13:48:16 +01:00
Dan Winship
da6a31aa80 Revert "Notice when (non-sugar) activity factories fail to launch. #1975"
This reverts commit d2aba901c3.

The change made etoys *always* apparently fail to launch; the problem
is with sugar-native-factory, not activityfactory.py
2007-08-22 18:23:20 -04:00