I don’t think the common container has userprefs implemented.  You’d need to 
define a user prefs function

container.config_[osapi.container.ContainerConfig.SET_PREFERENCES] = 
function(siteId, gadgetUrl, preferences)

that calls osapi.userprefs.update

osapi.userprefs.update({

    siteId : siteId;
    data : data

}).execute(function(response) {});

It would be cool if a default implementation (at least in-memory) was provided.

doug

On Jun 8, 2015, at 11:34 AM, Mark Cave-Ayland 
<[email protected]<mailto:[email protected]>> wrote:

On 08/06/15 15:49, Ryan Baxter wrote:

Exactly Doug, it is a sample meant to run as root.

-Ryan

Ah I see. I was hoping that the commoncontainer reference implementation
would be enough to act as a local test environment for something that
will eventually be hosted elsewhere.

What's the recommended way to handle userPrefs in this case? Is it
possible to have them hosted in a simple .properties file or similar
without requiring any code modifications?


ATB,

Mark.


Reply via email to