Commit Graph

49 Commits

Author SHA1 Message Date
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
95c5b283c7 Add datastore.complete_indexing() func. 2007-08-29 19:56:43 +02:00
Tomeu Vizoso
1430fdc24f Add a copy method to the datastore wrapper. 2007-08-27 19:44:49 +02:00
Tomeu Vizoso
544a400afc Updated to use application/vnd.olpc-sugar instead of application/vnd.olpc-x-sugar. 2007-08-21 16:59:32 +02:00
Dan Winship
26c5ad6ad0 Rewrite dbus_helpers to not make a dbus connection on import. #2773 2007-08-15 09:19:40 -04:00
Tomeu Vizoso
c54fb84b28 #2543: Offer multiple activities for opening clipboard objects. 2007-08-15 12:19:29 +02:00
Tomeu Vizoso
040c94d181 Removed debug messages. 2007-08-13 21:14:44 +02:00
Tomeu Vizoso
a197097164 Do a dict.copy() so we don't overwrite the original. 2007-08-01 16:31:33 +02:00
Tomeu Vizoso
f06404ca8e #2475 Retrieve correctly the file path for files in removable devices. 2007-07-30 16:21:42 +02:00
Tomeu Vizoso
5b73d0dfce Allow specifying a concrete activity when resuming a journal object. 2007-07-28 20:57:47 +02:00
Tomeu Vizoso
20d5eaf4bc Add timeout arg to sugar.datastore.Datastore. 2007-07-26 09:20:38 +02:00
Tomeu Vizoso
557f3d6ea7 Fix one more temp file leak. 2007-07-23 13:20:24 +02:00
Marco Pesenti Gritti
8ae99aaa87 Fix resuming objects with no activity associated for real. 2007-07-20 21:40:41 +02:00
Marco Pesenti Gritti
21f8027810 Fix resume of objects with no activity_id 2007-07-20 21:25:39 +02:00
Tomeu Vizoso
c07e61509b Send dbus.Dictionary so dbus doesn't complain. 2007-07-20 20:45:00 +02:00
Tomeu Vizoso
cb6d459815 Fix some temp file leaks. 2007-07-20 19:50:49 +02:00
Marco Pesenti Gritti
19c8532d09 Ensure activity uniquness in the shell 2007-07-20 13:15:11 +02:00
Tomeu Vizoso
a5338e054e Give the option of not updating mtime. 2007-07-16 14:57:07 +02:00
Tomeu Vizoso
5933941553 Adapt to datastore API changes. 2007-07-16 13:01:35 +02:00
Tomeu Vizoso
2b50699d87 Take out _data_store.complete_indexing() calls. 2007-07-13 18:36:50 +02:00
Tomeu Vizoso
91f0eb52aa Adapt to datastore API changes. 2007-07-13 13:20:44 +02:00
Tomeu Vizoso
bb71cd61cf #1888 Fix opening items from the clipboard. 2007-07-11 11:39:40 +02:00
Tomeu Vizoso
a4f4d969fe Popdown when the toplevel of the parent item loses focus. 2007-07-09 14:26:41 +02:00
Tomeu Vizoso
060b740983 API change in the datastore. 2007-07-05 11:37:51 +02:00
Tomeu Vizoso
13885e621b Add get_unique_values() func to the datastore. 2007-07-03 17:07:48 +02:00
Tomeu Vizoso
2ccf9c0b16 Added umount method to datastore.py. 2007-06-28 10:43:38 +02:00
Tomeu Vizoso
e894bb54a6 Added mount() and mounts() methods to datastore. 2007-06-27 11:36:05 +02:00
Marco Pesenti Gritti
99e8077f59 Implement fix-copyright and fix some of them 2007-06-24 14:43:48 +02:00
Tomeu Vizoso
4c24cde923 Added/corrected some license headers. 2007-06-24 13:10:53 +02:00
Tomeu Vizoso
f9d03b698f Add delete method to the datastore wrapper. 2007-06-22 17:01:13 +02:00
Tomeu Vizoso
99369114cb Set title on change. Fixes #1715. 2007-06-18 20:38:20 +02:00
Tomeu Vizoso
f0e18ba785 Support for previews in the journal. 2007-06-15 18:03:17 +02:00
Tomeu Vizoso
22689ed1da Several fixes for the object type registry and the activity registry. 2007-06-12 21:57:49 +02:00
Tomeu Vizoso
c35db7acf8 Some refactoring of the DataStore API. 2007-05-29 15:53:58 +02:00
Tomeu Vizoso
8915657a08 Take out one try..except block. 2007-05-28 16:25:36 +02:00
Tomeu Vizoso
1dc104126d Adapt to new DataStore API. 2007-05-22 14:03:31 +02:00
Tomeu Vizoso
11c89d86c9 Put dates to work correctly on the journal, create a new journal entry when resuming a past entry. 2007-05-20 12:38:08 +02:00
Tomeu Vizoso
7314d5a8c8 Improve logging. 2007-05-16 17:01:59 +02:00
Dan Williams
e659d15384 Make datastore find & update operations async 2007-05-16 00:41:45 -04:00
Tomeu
f3289d2e59 Implement setting the journal entry title from the toolbar. 2007-05-13 18:21:35 +02:00
Tomeu Vizoso
30114f9545 Temporary try..excepts while we stabilize the new datastore. 2007-05-10 14:16:48 +02:00
Tomeu Vizoso
929dabd165 Use the new DataStore and remove the old one. 2007-05-10 11:01:32 +02:00
Tomeu Vizoso
1f60139e09 Added WebSession datastore object. 2007-05-03 16:07:19 +02:00
Tomeu Vizoso
a585221b16 Added object update to the datastore. 2007-03-04 11:27:33 +01:00
Tomeu Vizoso
d504124cc2 Hack Dan's DataStore for doing what we need for 6th March demo. 2007-03-02 21:17:03 +01:00
Dan Williams
e586cd66c0 Add activity objects to the data store 2006-12-20 14:04:52 -05:00
Dan Williams
039ac19432 datastore fixes 2006-12-11 17:25:48 -05:00
Dan Williams
ff53fdc185 Add a simple prototype data store 2006-12-11 07:55:01 -05:00