Re: Example implementation for user prefs?

2011-08-02 Thread daviesd
wish to provide per gadget url preferences you can just ignore they siteid and return or persist the preferences for all gadgets coming from that url. From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/27/2011 03:22 PM Subject:Re: Example implementation

Re: Example implementation for user prefs?

2011-08-02 Thread daviesd
container code changing the id of the site. -daviesd davi...@oclc.org wrote: - To: dev@shindig.apache.org From: daviesd davi...@oclc.org Date: 08/02/2011 12:02PM Cc: Dan Dumont/Westford/IBM@Lotus Subject: Re: Example implementation for user prefs? Dan, Have you seen an timing issues

RE: Example implementation for user prefs?

2011-07-29 Thread Ciancetta, Jesse E.
: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/28/2011 11:55 AM Subject:Re: Example implementation for user prefs? Jesse, I think you are correct that it should be per instance. That's where the siteid would come into play. At least that's how I'm reading

Re: Example implementation for user prefs?

2011-07-29 Thread daviesd
developerWorks Profile From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/28/2011 11:55 AM Subject:Re: Example implementation for user prefs? Jesse, I think you are correct that it should be per instance. That's where the siteid would come into play

Re: Example implementation for user prefs?

2011-07-29 Thread Ryan J Baxter
developerWorks Profile From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Cc: Ryan J Baxter/Westford/IBM@Lotus Date: 07/29/2011 10:41 AM Subject:Re: Example implementation for user prefs? In our implementation the siteid SHOULD be unique and specific to an instance

Re: Example implementation for user prefs?

2011-07-28 Thread daviesd
implementation for user prefs? Dan, Nice! I'm still using 3.0.0-beta2, so hadn't seen this yet. Was there an earlier thread on how to use this? Can you explain how I hook into this and provide a server-side implementation? And does this mean when I call navigateGadget that I should now

RE: Example implementation for user prefs?

2011-07-28 Thread Ciancetta, Jesse E.
To: dev@shindig.apache.org, Date: 07/27/2011 03:22 PM Subject:Re: Example implementation for user prefs? Dan, Nice! I'm still using 3.0.0-beta2, so hadn't seen this yet. Was there an earlier thread on how to use this? Can you explain how I hook into this and provide a server-side

Re: Example implementation for user prefs?

2011-07-28 Thread daviesd
Subject:Re: Example implementation for user prefs? Dan, Nice! I'm still using 3.0.0-beta2, so hadn't seen this yet. Was there an earlier thread on how to use this? Can you explain how I hook into this and provide a server-side implementation? And does this mean when I call

Re: Example implementation for user prefs?

2011-07-28 Thread daviesd
needed when doing the gadget render, not the metadata request. No patch needed. From: Dan Dumont/Westford/IBM@Lotus To: dev@shindig.apache.org, Date: 07/27/2011 03:35 PM Subject:Re: Example implementation for user prefs? http://opensocial-resources.googlecode.com/svn

Re: Example implementation for user prefs?

2011-07-28 Thread Ryan J Baxter
davi...@oclc.org To: dev@shindig.apache.org, Date: 07/28/2011 11:55 AM Subject:Re: Example implementation for user prefs? Jesse, I think you are correct that it should be per instance. That's where the siteid would come into play. At least that's how I'm reading it (and now

Re: Example implementation for user prefs?

2011-07-28 Thread Henry Saputra
preferences are supposed to be stored per user/per application instance). -Original Message- From: daviesd [mailto:davi...@oclc.org] Sent: Wednesday, July 27, 2011 11:59 AM To: dev@shindig.apache.org Subject: Re: Example implementation for user prefs? Actually, I was lazy and went

Re: Example implementation for user prefs?

2011-07-28 Thread Ryan J Baxter
...@us.ibm.com Phone: 978-899-3041 developerWorks Profile From: Henry Saputra henry.sapu...@gmail.com To: dev@shindig.apache.org, Date: 07/28/2011 09:13 PM Subject:Re: Example implementation for user prefs? Hmm I cant seem to find if user preference is per application instance. I

Re: Example implementation for user prefs?

2011-07-28 Thread Craig McClanahan
...@us.ibm.com Phone: 978-899-3041 developerWorks Profile From: Henry Saputra henry.sapu...@gmail.com To: dev@shindig.apache.org, Date: 07/28/2011 09:13 PM Subject:Re: Example implementation for user prefs? Hmm I cant seem to find if user preference is per application

Re: Example implementation for user prefs?

2011-07-27 Thread daviesd
Actually, I was lazy and went with the approach of layering userprefs on top of appdata as follows: container.rpcRegister('set_pref', function(rpcArgs, data) { var prefName = rpcArgs['a'][1]; var prefKey = 'up_' + prefName; var prefValue = rpcArgs['a'][2];

Re: Example implementation for user prefs?

2011-07-27 Thread Paul Lindner
Can you write this up a patch so we can make this the default implementation? This is something I've been meaning to do for months. On Wed, Jul 27, 2011 at 8:58 AM, daviesd davi...@oclc.org wrote: Actually, I was lazy and went with the approach of layering userprefs on top of appdata as

RE: Example implementation for user prefs?

2011-07-27 Thread Ciancetta, Jesse E.
Subject: Re: Example implementation for user prefs? Actually, I was lazy and went with the approach of layering userprefs on top of appdata as follows: container.rpcRegister('set_pref', function(rpcArgs, data) { var prefName = rpcArgs['a'][1]; var prefKey = 'up_' + prefName

Re: Example implementation for user prefs?

2011-07-27 Thread Dan Dumont
: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/27/2011 01:09 PM Subject:Re: Example implementation for user prefs? Paul, Sure. Give me a few days, I just got back from vacation. I'll have to figure out whether the container token will be sufficient for this, as I had

Re: Example implementation for user prefs?

2011-07-27 Thread daviesd
are going to be providing a default preference persistence impl, it would be great if you could hook into this :) From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/27/2011 01:09 PM Subject:Re: Example implementation for user prefs? Paul, Sure

Re: Example implementation for user prefs?

2011-07-27 Thread Dan Dumont
. If you are going to be providing a default preference persistence impl, it would be great if you could hook into this :) From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/27/2011 01:09 PM Subject:Re: Example implementation for user prefs? Paul

Re: Example implementation for user prefs?

2011-07-27 Thread daviesd
preferences you can just ignore they siteid and return or persist the preferences for all gadgets coming from that url. From: daviesd davi...@oclc.org To: dev@shindig.apache.org, Date: 07/27/2011 03:22 PM Subject:Re: Example implementation for user prefs? Dan, Nice! I'm

Re: Example implementation for user prefs?

2011-07-27 Thread Dan Dumont
: Example implementation for user prefs? Dan, Nice! I'm still using 3.0.0-beta2, so hadn't seen this yet. Was there an earlier thread on how to use this? Can you explain how I hook into this and provide a server-side implementation? And does this mean when I call navigateGadget that I should

RE: Example implementation for user prefs?

2011-07-26 Thread Ciancetta, Jesse E.
So with some research it looks like I'm supposed to be implementing my own server module. Is that pretty much accurate? Yes -- you'll need to implement both the client side UI for editing preferences and the server side API for persisting them. I actually just did that work though for the

Re: Example implementation for user prefs?

2011-07-26 Thread Mat Schaffer
On Tue, Jul 26, 2011 at 5:17 AM, Ciancetta, Jesse E. jc...@mitre.orgwrote: So with some research it looks like I'm supposed to be implementing my own server module. Is that pretty much accurate? Yes -- you'll need to implement both the client side UI for editing preferences and the server

Re: Example implementation for user prefs?

2011-07-25 Thread Mat Schaffer
So with some research it looks like I'm supposed to be implementing my own server module. Is that pretty much accurate? Again, any advice or RTFMs (with a link to the respective FMs) is appreciated. Thanks, Mat On Fri, Jul 22, 2011 at 10:20 AM, Mat Schaffer m...@schaffer.me wrote: So I

Re: Example implementation for user prefs?

2011-07-25 Thread Henry Saputra
If you want the user pref to be persisted in the database you need to implement the server handler for it. I remember Doug Davies has tried to add persistent layer for user pref. Maybe he could share his progress. Including him in the email. - Henry On Mon, Jul 25, 2011 at 3:42 PM, Mat

Example implementation for user prefs?

2011-07-22 Thread Mat Schaffer
So I noticed that UserPref items don't work on the sample container which makes sense after finding this thread: http://markmail.org/message/tlwtlo4mrnrpz4w5 Is there any good example of best-practice for implementing user prefs in my containing application? Do I just make my own