Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-23 Thread Sam Parkinson
Hi, I think this is an issue with the backend. I changed to using the dictstore in my activity and it works a charm in chrome; it calls my loaded callback. But on sugar it hangs with loading the data. I have no idea what is wrong, since it works for get things done activity. Sam On Sat, Mar

Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-23 Thread Lionel Laské
2014 15:34:33 +1100 From: Sam Parkinson sam.parkins...@gmail.com To: Manuel Qui?ones ma...@laptop.org, Sugar-dev Devel sugar-devel@lists.sugarlabs.org Subject: [Sugar-devel] How do you save stuff in web activities? Message-ID: CACVKbrVomF2ayh1bUfCXeDSxzShjSxy3dag3Z0RES= 5ddoi

Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-23 Thread Daniel Narvaez
Does it work if you do it inside domReady like gtd? I don't remember if that's required by the API (probably not) but it might trigger a race condition anyway. On Sunday, 23 March 2014, Sam Parkinson sam.parkins...@gmail.com wrote: Hi, I think this is an issue with the backend. I changed to

Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-23 Thread Sam Parkinson
The domReady! worked a charm :) On Sun, Mar 23, 2014 at 9:19 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Does it work if you do it inside domReady like gtd? I don't remember if that's required by the API (probably not) but it might trigger a race condition anyway. On Sunday, 23 March

Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-22 Thread Daniel Narvaez
Where are you calling this from? You should not need to setup() manually. On Saturday, 22 March 2014, Sam Parkinson sam.parkins...@gmail.com wrote: Hi, I'm just wondering, does anyone have any code snippets for saving on web activities? I'm trying to make a web activity and am having some

Re: [Sugar-devel] How do you save stuff in web activities?

2014-03-22 Thread Sam Parkinson
Hi, I am just calling this form define(function(require). You can see the rest of the file here https://github.com/SAMdroid-apps/sugar-slides/blob/master/js/activity.coffee Thanks :) On Sat, Mar 22, 2014 at 6:36 PM, Daniel Narvaez dwnarv...@gmail.com wrote: Where are you calling this from?

[Sugar-devel] How do you save stuff in web activities?

2014-03-21 Thread Sam Parkinson
Hi, I'm just wondering, does anyone have any code snippets for saving on web activities? I'm trying to make a web activity and am having some issues. Here is my save+load code: [CoffeeScript] activity.setup() datastoreObject = activity.getDatastoreObject() onLoaded = (error, metadata, data) -