From derrickle@example.net Mon Nov 01 13:12:50 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 68152 invoked from network); 1 Nov 2010 13:12:50 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Nov 2010 13:12:50 -0000 Received: (qmail 83182 invoked by uid 500); 1 Nov 2010 13:13:21 -0000 Delivered-To: derrickle@example.net Received: (qmail 83118 invoked by uid 500); 1 Nov 2010 13:13:19 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 83110 invoked by uid 99); 1 Nov 2010 13:13:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:13:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s12.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:13:10 +0000 Received: from COL102-W21 ([83.161.120.155]) by col0-omc4-s12.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Mon, 1 Nov 2010 06:12:48 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_f6c29abf-d2a5-4e1d-9ce8-14523ea3a03c_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: RE: userPrefs is undefined / getting UserPreferences to work Date: Mon, 1 Nov 2010 13:12:48 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 01 Nov 2010 13:12:48.0633 (UTC) FILETIME=[7B1F5E90:01CB79C6] X-Virus-Checked: Checked by ClamAV on apache.org --_f6c29abf-d2a5-4e1d-9ce8-14523ea3a03c_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter Are you using the PHP or Java version btw? I hope this helps - you may just need to pick out the bits that apply: By the prefs dialog do you mean the box that appears on iGoogle when you cl= ick 'Edit Settings'? If so - it isn't there in Shindig. You have to make yo= ur own. What we do is: A. Make a metadata request on the server. B. Get the default prefs (values = and types) out of the metadataC. Over-write any we've saved for this userD.= Build a little fragment of HTML for the settings box - there are I think 5= types of data types e.g. STRING=2C BOOL=2C ENUM and populate with the defa= ults (or saved user ones from C). I'm happy to share our PHP code with you = if it would just make it clearer what is going on.E. Output this with the i= frame source. The user can then edit them. You would not do C. if you aren't saving them. >From your code though it looks like you are rendering the gadgets on the cl= ient. I think you based this on the sample container page? http://yourdomai= n:yourport/gadgets/files/samplecontainer/samplecontainer.html ?=20 Anyway I tried to reproduce your error on one of my test sites: http://mms-= oxford.com/shindig/index.html using gadget: http://mms-oxford.com/gadgets/p= refs_test.xml and I think I got something similar. I then solved it by: adding this line:=20 gadgets.rpc.register('set_pref'=2C testPrefs)=3B and the function: function testPrefs(t=2Cname=2Cvalue) {alert('trying to save user prefs')=3B= alert (name)=3Balert(value)=3Balert(this.f)=3B//now get the iframe src=2C r= eplace the user pref params with the new ones and reload the gadget //the main point in your case is that you want to put the new params onto t= he iframe source with up_name=3Dvalue - and reload the iframe. This will ca= use the new params to be available in the gadget code so a request to get a= param would now get the new one. //reload the gadget by setting its src property?? can cause an error} A working version of the above in Partuza container.js: setUserPref: function(editToken=2C name=2C value) { var elm =3D $('#' + this.f)=3B // we use the security token to tell our backend who this is (app/mod/vie= wer) // since it's the only fail safe way of doing so if (elm !=3D undefined) { var params =3D gadgets.container._parseIframeUrl(elm.attr('src'))=3B //TODO use params.st to make the store request=2C it holds the owner / v= iewer / app id / mod id required var ret =3D $.ajax({ type: "GET"=2C dataType: 'html'=2C cache: false=2C url : '/prefs/set'=2C data : { name : name=2C value : value=2C st : params.st } })=3B } }=2C A few things to pick up: the gadget http://mms-oxford.com/gadgets/prefs_tes= t.xml has <Require feature=3D"setprefs"/> in the head section. I think you = got that. When you click the Save button on the gadget it calls my function in the ga= dget (do view source on the gadget iframe and look for any user added code = after all the included JS) which then calls this: var prefs =3D new gadgets.Prefs()=3Bprefs.set("name"=2Cvname)=3B This makes an RPC call to the container. (There is a bunch of very interest= ing code in the Gadget Javascript which determines how it is going to make = this RPC call. With modern browsers it uses postMessage. In some older brow= sers it won't work unless you set up an html_relay file - but we don't have= one and it works in IE6+=2C Chrome and FF 3 - see rpc.js for the nitty gri= tty details).=20 This is why you need to register a handler for that call: gadgets.rpc.register('set_pref'=2C testPrefs)=3B //setUserPref is the partu= za example testPrefs here is your own function. Looking at the Shindig sample code the= re is an incomplete implementation of this. We copied ours from Partuza. Pa= rtuza is a sample PHP implementation of Shindig and fills in some of the ga= ps missing from Shindig. See http://code.google.com/p/partuza/. We just dow= nloaded the code and looked at it - we didn't actually set up the site.=20 The name and value are passed in from the prefs.set call in the gadget and = this.f gives you the id of the iframe. The Partuza sample code then has a p= arameter replacement function - you can add the new params onto the iframe = source and redraw the gadget - thus=2C without saving=2C your new prefs wou= ld be on the gadget. So the partuza code is well worth getting. Look especi= derrickle@example.net.=20 I should say that I have a problem with the above. If my testPrefs function= tries to reload the gadget when set_prefs is called automatically by some = other code (the tabs feature) the function causes an error. So for now my g= adget does not refresh. Mostly your call to change the prefs would come fro= m the settings box outside the gadget and this is not a problem. Ie. they a= re called by your own Javascript and not some Shindig code. To explain this= a bit further: there are 2 cases - i) the call to update a pref comes from= within a gadget and ii) the call comes from a Edit box you have provided a= s part of your container. The sample page I've sent you is case i). The sec= ond case which in fact is probably more common is like the iGoogle edit set= tings box. With i) the rpc mechanism comes into play as I've described. Wit= h ii) it is all up to you. You make the box and the save is whatever you wa= nt to do - in your cases of not needing persistence the main point is to mo= dify the url src for your new params. (Look at a gadget with prefs in iGoog= le and see how the iframe src is constructed - you see params being passed = as up_paramname=3Dvalue on the src).=20 Finally - the line at the top where you include Shindig container code is i= mportant. You have: <script type=3D"text/javascript" src=3D"http://localhost:8080/gadgets/js/sh= indig-container:rpc.js?c=3D1&debug=3D1"></script><script type=3D"text/javas= cript" src=3D"http://localhost:8080/gadgets/js/core.js?c=3D1&debug=3D1"></s= cript> We have in my sample: <script type=3D"text/javascript" src=3D"http://83.161.120.155:85/gadgets/js/= core:opensocial:rpc?debug=3D1"></script>=20 The fields separated by a colon refer to Javascript files that you are incl= uding. You are using the shindig-container. We are not. In our full impleme= ntation we built our own container doing a pick and mix from the Shindig sa= mple container and the partuza sample container (container.js). I don't kno= w if any of the code you are including is trying to register another handle= r for set_prefs - if you use Chrome or Firebug you could try searching all = the loaded resources to rpc.register to see. Re. docs - Yes. There is not very derrickle@example.net. (Again Partuza helped us a lot). And th= e JS API is defined here: http://wiki.opensocial.org/index.php?title=3DJav= aScript_API_Reference. I *think* Shindig 2.0 supports OpenSocial 0.9 and 1.= 0 but it may be worth asking on the dev group about that. HTH 0 let me know if I can add anything Justin >=20 > Currently=2C I am using the mentioned "setUserPref" in > shindig-container.js which sadly produces the error described in my last > mail (this.userPrefs is undefined on line 5796 - which is taken from > shindig-container.js=2C line 212) so I guess the basic functionality > should work and should just be missing the persistence. So the handler > should be registered and actually is called. Are=20 >=20 > In another (older) setup=2C using > shindig-server-1.1-BETA6-incubating-SNAPSHOT.war=2C the above (i.e. > without persistence) is working fine and it is even showing the > "Preference" Button + Dialog in the rendered gadget. For this=2C I'm usin= g > the sample4.html code from the old shindig=2C including the "cookies.js"= =2C > "gadget.js" and "util.js" from the "container" (samples) directory of > shindig 1.1. >=20 > Reading your mail I am starting to think that I may be missing a great > deal of information about shindig. Could you point me to some ressources > for setting up the gadget-rendering/javascript-feature part of shindig? >=20 > > I assume your gadget has <Require feature=3D"setprefs"/>? > I tried both (desperate me!) - with or without=2C doesnt make a differenc= e > concerning the error message in FireBug. >=20 > Regards=2C > Peter = --_f6c29abf-d2a5-4e1d-9ce8-14523ea3a03c_-- From derrickle@example.net Mon Nov 01 13:20:27 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 69883 invoked from network); 1 Nov 2010 13:20:27 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Nov 2010 13:20:27 -0000 Received: (qmail 89589 invoked by uid 500); 1 Nov 2010 13:20:59 -0000 Delivered-To: derrickle@example.net Received: (qmail 89565 invoked by uid 500); 1 Nov 2010 13:20:58 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 89557 invoked by uid 99); 1 Nov 2010 13:20:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:20:57 +0000 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,MPART_ALT_DIFF,RCVD_IN_DNSWL_NONE,SPF_PASS,SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s19.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:20:49 +0000 Received: from COL102-W48 ([83.161.120.155]) by col0-omc4-s19.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Mon, 1 Nov 2010 06:20:28 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_8da585b9-2fdf-4c97-8603-ca84990956a0_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: TEST MESSAGE Date: Mon, 1 Nov 2010 13:20:28 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 01 Nov 2010 13:20:28.0838 (UTC) FILETIME=[8D6D1460:01CB79C7] --_8da585b9-2fdf-4c97-8603-ca84990956a0_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable line-breakline-break line-breakline-break line-breakline-break = --_8da585b9-2fdf-4c97-8603-ca84990956a0_-- From derrickle@example.net Mon Nov 01 13:23:07 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 70285 invoked from network); 1 Nov 2010 13:23:07 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Nov 2010 13:23:07 -0000 Received: (qmail 93886 invoked by uid 500); 1 Nov 2010 13:23:38 -0000 Delivered-To: derrickle@example.net Received: (qmail 93828 invoked by uid 500); 1 Nov 2010 13:23:36 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 93820 invoked by uid 99); 1 Nov 2010 13:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:23:36 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s16.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 13:23:28 +0000 Received: from COL102-W45 ([83.161.120.155]) by col0-omc4-s16.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Mon, 1 Nov 2010 06:23:07 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_05827c75-9963-4324-90a2-0bcc9e5f638a_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: TEST MESSAGE - please ignore Date: Mon, 1 Nov 2010 13:23:07 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 01 Nov 2010 13:23:07.0865 (UTC) FILETIME=[EC36AC90:01CB79C7] --_05827c75-9963-4324-90a2-0bcc9e5f638a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry. I'm not spamming this list. Just seeing why all my messages lose the= ir line breaks Line 1 Line 2 Line 3 Line 4 = --_05827c75-9963-4324-90a2-0bcc9e5f638a_-- From derrickle@example.net Mon Nov 01 16:34:50 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 86091 invoked from network); 1 Nov 2010 16:34:50 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Nov 2010 16:34:50 -0000 Received: (qmail 73415 invoked by uid 500); 1 Nov 2010 16:35:21 -0000 Delivered-To: derrickle@example.net Received: (qmail 73351 invoked by uid 500); 1 Nov 2010 16:35:21 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 73337 invoked by uid 99); 1 Nov 2010 16:35:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 16:35:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail-ey0-f180.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 16:35:14 +0000 Received: by eyf6 with SMTP id 6so2678638eyf.39 for <derrickle@example.net>; Mon, 01 Nov 2010 09:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=po0TDxQRh6FntGinL6RKSxTM/GueLJqK8nRvmHilldc=; b=w3AJQmpTWpwD2hP6RP87h65xJZ4sLzR3uZQvpz7ksLXfTot5sX12CP/u33Iv4Wi71a lqRRoNvpzeT60m0U+FCOL+qgFrJG577Gk/WdmiCuQiLDOf9WxXw/lAWWJoEI9UyoKtJC CudlSWsPv7uQNdIiDtUq5OYT3OC7hViYcniUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nb+WP0ywdPD9uYkHnoEd5CIdlezCBrqml2z5SYXOHFdMAL/AGkmoqUCay9vvQ9rHuo 14Z/o+JhusrYo1LcO0tl1Np10SvICPlxWuaKJgZ/u9W/ST9Emp6SZOJt/OarC389ZtQc oJPf2BizqAQzpJxzadvwb4QhUyeg2OiTrifL8= MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id p8mr12955310ebp.40.1288629294416; Mon, 01 Nov 2010 09:34:54 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 1 Nov 2010 09:34:54 -0700 (PDT) In-Reply-To: <derrickle@example.net> References: <derrickle@example.net> Date: Mon, 1 Nov 2010 09:34:54 -0700 Message-ID: <derrickle@example.net> Subject: Re: TEST MESSAGE - please ignore From: Rajender Reddy <derrickle@example.net> To: derrickle@example.net Content-Type: multipart/alternative; boundary=0015174c136c574bce0494006337 X-Virus-Checked: Checked by ClamAV on apache.org --0015174c136c574bce0494006337 Content-Type: text/plain; charset=ISO-8859-1 :-) On Mon, Nov 1, 2010 at 6:23 AM, Justin Wyllie <derrickle@example.net>wrote: > > Sorry. I'm not spamming this list. Just seeing why all my messages lose > their line breaks > Line 1 Line 2 > Line 3 > Line 4 > > -- Thanks, -Raj --0015174c136c574bce0494006337-- From derrickle@example.net Tue Nov 02 08:31:29 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 61258 invoked from network); 2 Nov 2010 08:31:29 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 2 Nov 2010 08:31:29 -0000 Received: (qmail 80679 invoked by uid 500); 2 Nov 2010 08:32:01 -0000 Delivered-To: derrickle@example.net Received: (qmail 80616 invoked by uid 500); 2 Nov 2010 08:31:59 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 80604 invoked by uid 99); 2 Nov 2010 08:31:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:31:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO itm01.itm.uni-luebeck.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 08:31:49 +0000 Received: from [83.161.120.155] (panaritium.itm.uni-luebeck.de [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by itm01.itm.uni-luebeck.de (Postfix) with ESMTPSA id 10C3883F8F2 for <derrickle@example.net>; Tue, 2 Nov 2010 09:31:29 +0100 (CET) Message-ID: <derrickle@example.net> Date: Tue, 02 Nov 2010 09:31:28 +0100 From: Peter Rothenpieler <derrickle@example.net> Organization: Institut =?ISO-8859-1?Q?f=FCr_Telematik=2C_Universit=E4?= =?ISO-8859-1?Q?t_zu_L=FCbeck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: derrickle@example.net Subject: Re: userPrefs is undefined / getting UserPreferences to work References: <derrickle@example.net> In-Reply-To: <derrickle@example.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hey Justin, Thank you very much for your comprehensive answer - I'm using the JAVA version of Shindig, but I think you nevertheless pointed me into the right direction. I will have look at Partuzza and get back to you (the mailing-list) as soon as I (don't) get things figured out. BTW - how come that there is so little documentation on these things? As a absolute newbie to shindig, I was of course looking at the samples which you were also referring to in your last post. However, the samples concerning the "set_prefs" feature don't seem to work for me "out of the box" which I normally would expect from "samples". Don't get me wrong - I think the work and effort that you people put into shindig is really cool! It's just a real bummer that it's so hard to actually learn how to use shindig (which I would love to). Or am I just missing the "well known howto #1"? -Peter From derrickle@example.net Tue Nov 02 09:50:46 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 93402 invoked from network); 2 Nov 2010 09:50:45 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 2 Nov 2010 09:50:45 -0000 Received: (qmail 79656 invoked by uid 500); 2 Nov 2010 09:51:17 -0000 Delivered-To: derrickle@example.net Received: (qmail 79584 invoked by uid 500); 2 Nov 2010 09:51:15 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 79571 invoked by uid 99); 2 Nov 2010 09:51:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 09:51:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s10.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 09:51:07 +0000 Received: from COL102-W21 ([83.161.120.155]) by col0-omc4-s10.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Tue, 2 Nov 2010 02:50:47 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_760c86af-b59d-4783-a4cf-3b7069020c6a_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: RE: userPrefs is undefined / getting UserPreferences to work Date: Tue, 2 Nov 2010 09:50:47 +0000 Importance: Normal In-Reply-To: <derrickle@example.net> References: <derrickle@example.net>,<derrickle@example.net> MIME-Version: 1.0 X-OriginalArrivalTime: 02 Nov 2010 09:50:47.0465 (UTC) FILETIME=[6CC1A990:01CB7A73] --_760c86af-b59d-4783-a4cf-3b7069020c6a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter I think one thing with Shindig is that it supports the Open Social spec but= is not itself a portal. UserPrefs would be something that each different c= ontainer is going to have to implement in it's own way.=20 I think the reason there is so little documentation is that they are all bu= sy writing the code. The derrickle@example.net mailing list is where they = all hang out - and they are quite helpful. I have to offer a disclaimer - I= am definitely a user not a developer of Shindig.=20 For learning - we used iGoogle a lot. I think it's based on Shindig so it's= a good site to copy. You can look at the url strings=2C examine the XHR re= quests in Firebug etc and it helps a lot. Partuza helped. Once you understa= nd the basics of the container=2C how JS files are loaded into the gadgets = with a Require statement or into the web page with that gadgets/js:feature:= feature syntax which I mentioned yesterday and the different services you a= re well on the way.=20 I found some of the examples for gadgets I've used in developer sites on Ni= ng etc. You do just have to hunt around for info. (I agree it's a pain). regards Justin=20 > Date: Tue=2C 2 Nov 2010 09:31:28 +0100 > From: derrickle@example.net > To: derrickle@example.net > Subject: Re: userPrefs is undefined / getting UserPreferences to work >=20 > Hey Justin=2C >=20 > Thank you very much for your comprehensive answer - I'm using the JAVA > version of Shindig=2C but I think you nevertheless pointed me into the > right direction. I will have look at Partuzza and get back to you (the > mailing-list) as soon as I (don't) get things figured out. >=20 > BTW - how come that there is so little documentation on these things? As > a absolute newbie to shindig=2C I was of course looking at the samples > which you were also referring to in your last post. However=2C the sample= s > concerning the "set_prefs" feature don't seem to work for me "out of the > box" which I normally would expect from "samples". Don't get me wrong - > I think the work and effort that you people put into shindig is really > cool! It's just a real bummer that it's so hard to actually learn how to > use shindig (which I would love to). Or am I just missing the "well > known howto #1"? >=20 > -Peter = --_760c86af-b59d-4783-a4cf-3b7069020c6a_-- From derrickle@example.net Tue Nov 02 11:12:59 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 37353 invoked from network); 2 Nov 2010 11:12:59 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 2 Nov 2010 11:12:59 -0000 Received: (qmail 79195 invoked by uid 500); 2 Nov 2010 11:13:30 -0000 Delivered-To: derrickle@example.net Received: (qmail 79179 invoked by uid 500); 2 Nov 2010 11:13:29 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 79158 invoked by uid 99); 2 Nov 2010 11:13:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 11:13:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s14.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 11:13:20 +0000 Received: from COL102-W52 ([83.161.120.155]) by col0-omc4-s14.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Tue, 2 Nov 2010 04:12:58 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_e97331b3-5edd-41ae-96df-8a5c1735c77e_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: OpenSocial Documentation Date: Tue, 2 Nov 2010 11:12:58 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 02 Nov 2010 11:12:58.0493 (UTC) FILETIME=[E7E0D2D0:01CB7A7E] X-Virus-Checked: Checked by ClamAV on apache.org --_e97331b3-5edd-41ae-96df-8a5c1735c77e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter Someone just drew my attention to these 2 documents: http://wiki.opensocial.org/index.php?title=3DMain_Pagehttp://code.google.co= m/apis/gadgets/docs/spec.html cheers Justin = --_e97331b3-5edd-41ae-96df-8a5c1735c77e_-- From derrickle@example.net Tue Nov 02 12:33:15 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 71802 invoked from network); 2 Nov 2010 12:33:15 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 2 Nov 2010 12:33:15 -0000 Received: (qmail 64244 invoked by uid 500); 2 Nov 2010 12:33:46 -0000 Delivered-To: derrickle@example.net Received: (qmail 64170 invoked by uid 500); 2 Nov 2010 12:33:44 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 64159 invoked by uid 99); 2 Nov 2010 12:33:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 12:33:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO itm01.itm.uni-luebeck.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 12:33:35 +0000 Received: from [83.161.120.155] (panaritium.itm.uni-luebeck.de [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by itm01.itm.uni-luebeck.de (Postfix) with ESMTPSA id AA2D083F8F2 for <derrickle@example.net>; Tue, 2 Nov 2010 13:33:14 +0100 (CET) Message-ID: <derrickle@example.net> Date: Tue, 02 Nov 2010 13:33:14 +0100 From: Peter Rothenpieler <derrickle@example.net> Organization: Institut =?ISO-8859-1?Q?f=FCr_Telematik=2C_Universit=E4?= =?ISO-8859-1?Q?t_zu_L=FCbeck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: derrickle@example.net Subject: Re: OpenSocial Documentation References: <derrickle@example.net> In-Reply-To: <derrickle@example.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Justin, The second one of your links (https://code.google.com/intl/de-DE/apis/gadgets/docs/spec.html) indeed seems to explain a LOT of the questions which I am facing right now! Thanks a lot! -Peter From derrickle@example.net Wed Nov 03 11:52:01 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 1728 invoked from network); 3 Nov 2010 11:52:01 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 11:52:01 -0000 Received: (qmail 74942 invoked by uid 500); 3 Nov 2010 11:52:32 -0000 Delivered-To: derrickle@example.net Received: (qmail 74899 invoked by uid 500); 3 Nov 2010 11:52:30 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 74442 invoked by uid 99); 3 Nov 2010 11:52:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 11:52:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO itm01.itm.uni-luebeck.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 11:52:21 +0000 Received: from [83.161.120.155] (panaritium.itm.uni-luebeck.de [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by itm01.itm.uni-luebeck.de (Postfix) with ESMTPSA id D5C9014D9C3 for <derrickle@example.net>; Wed, 3 Nov 2010 12:51:58 +0100 (CET) Message-ID: <derrickle@example.net> Date: Wed, 03 Nov 2010 12:51:58 +0100 From: Peter Rothenpieler <derrickle@example.net> Organization: Institut =?ISO-8859-1?Q?f=FCr_Telematik=2C_Universit=E4?= =?ISO-8859-1?Q?t_zu_L=FCbeck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: derrickle@example.net Subject: Re: userPrefs is undefined / getting UserPreferences to work References: <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net> In-Reply-To: <derrickle@example.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hey Justin, Just wanted to let you know that Shindig does offer a "settings-dialog" (see shindig.BaseIfrGadget.prototype.getTitleBarContent in shindig-container.js) Also, I got the settings-dialog working with my gadget by adding the following line in shindig-container.js: > shindig.Gadget = function(params) { > this.userPrefs = {}; > if (params) { > for (var name in params) > if (params.hasOwnProperty(name)) { > this[name] = params[name]; > this.userPrefs[name] = params[name]; // <--- this one > } > } > if (!this.secureToken) { > // Assume that the default security token implementation is > // in use on the server. > this.secureToken = 'john.doe:john.doe:appid:cont:url:0:default'; > } > }; I'm not sure if this fixes all issues, but right now I think this pretty much helps me getting started with the preference-persistence on server-side. For this I am going to go through the other stuff which you posted in the last days. Cheers, Peter From derrickle@example.net Wed Nov 03 12:56:36 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 37137 invoked from network); 3 Nov 2010 12:56:35 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 12:56:35 -0000 Received: (qmail 40952 invoked by uid 500); 3 Nov 2010 12:57:07 -0000 Delivered-To: derrickle@example.net Received: (qmail 40936 invoked by uid 500); 3 Nov 2010 12:57:05 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 40928 invoked by uid 99); 3 Nov 2010 12:57:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 12:57:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s1.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 12:56:56 +0000 Received: from COL102-W65 ([83.161.120.155]) by col0-omc4-s1.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Wed, 3 Nov 2010 05:56:35 -0700 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_68a72f79-dd1c-4cae-8a83-c9fdd74b069f_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: RE: userPrefs is undefined / getting UserPreferences to work Date: Wed, 3 Nov 2010 12:56:35 +0000 Importance: Normal In-Reply-To: <derrickle@example.net> References: <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net>,<derrickle@example.net> MIME-Version: 1.0 X-OriginalArrivalTime: 03 Nov 2010 12:56:35.0093 (UTC) FILETIME=[8BAC7450:01CB7B56] X-Virus-Checked: Checked by ClamAV on apache.org --_68a72f79-dd1c-4cae-8a83-c9fdd74b069f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter What version of Shindig are you using? > Date: Wed=2C 3 Nov 2010 12:51:58 +0100 > From: derrickle@example.net > To: derrickle@example.net > Subject: Re: userPrefs is undefined / getting UserPreferences to work >=20 > Hey Justin=2C >=20 > Just wanted to let you know that Shindig does offer a "settings-dialog" > (see shindig.BaseIfrGadget.prototype.getTitleBarContent in > shindig-container.js) >=20 > Also=2C I got the settings-dialog working with my gadget by adding the > following line in shindig-container.js: >=20 > > shindig.Gadget =3D function(params) { > > this.userPrefs =3D {}=3B > > if (params) { > > for (var name in params) =20 > > if (params.hasOwnProperty(name)) { > > this[name] =3D params[name]=3B > > this.userPrefs[name] =3D params[name]=3B // <--- this one > > } > > } > > if (!this.secureToken) { > > // Assume that the default security token implementation is > > // in use on the server. > > this.secureToken =3D 'john.doe:john.doe:appid:cont:url:0:default'= =3B > > } > > }=3B >=20 > I'm not sure if this fixes all issues=2C but right now I think this prett= y > much helps me getting started with the preference-persistence on > server-side. For this I am going to go through the other stuff which you > posted in the last days. >=20 > Cheers=2C > Peter = --_68a72f79-dd1c-4cae-8a83-c9fdd74b069f_-- From derrickle@example.net Wed Nov 03 14:52:43 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 86505 invoked from network); 3 Nov 2010 14:52:43 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 14:52:43 -0000 Received: (qmail 15929 invoked by uid 500); 3 Nov 2010 14:53:14 -0000 Delivered-To: derrickle@example.net Received: (qmail 15866 invoked by uid 500); 3 Nov 2010 14:53:13 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 15857 invoked by uid 99); 3 Nov 2010 14:53:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 14:53:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO itm01.itm.uni-luebeck.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 14:53:04 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by itm01.itm.uni-luebeck.de (Postfix) with ESMTPSA id A807983F8FF for <derrickle@example.net>; Wed, 3 Nov 2010 15:52:43 +0100 (CET) Message-ID: <derrickle@example.net> Date: Wed, 03 Nov 2010 15:52:41 +0100 From: Peter Rothenpieler <derrickle@example.net> Organization: Institut =?ISO-8859-1?Q?f=FCr_Telematik=2C_Universit=E4?= =?ISO-8859-1?Q?t_zu_L=FCbeck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: derrickle@example.net Subject: Re: userPrefs is undefined / getting UserPreferences to work References: <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net> In-Reply-To: <derrickle@example.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am using "shindig-2.0.0-source.zip" (JAVA) downloaded from [1] [1] http://shindig.apache.org/download/index.html From derrickle@example.net Fri Nov 05 22:06:10 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 53841 invoked from network); 5 Nov 2010 22:06:10 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 5 Nov 2010 22:06:10 -0000 Received: (qmail 35292 invoked by uid 500); 5 Nov 2010 22:06:42 -0000 Delivered-To: derrickle@example.net Received: (qmail 35250 invoked by uid 500); 5 Nov 2010 22:06:41 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 35239 invoked by uid 99); 5 Nov 2010 22:06:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 22:06:41 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-qw0-f52.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 22:06:33 +0000 Received: by qwc9 with SMTP id 9so2790073qwc.39 for <derrickle@example.net>; Fri, 05 Nov 2010 15:06:10 -0700 (PDT) Received: by 83.161.120.155 with SMTP id p8mr1460767qag.126.1288994770496; Fri, 05 Nov 2010 15:06:10 -0700 (PDT) Received: from [83.161.120.155] ([83.161.120.155]) by mx.google.com with ESMTPS id n7sm1814308qcu.40.283.161.120.155.06.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Nov 2010 15:06:08 -0700 (PDT) Message-ID: <derrickle@example.net> Date: Fri, 05 Nov 2010 18:06:07 -0400 From: Ate Douma <derrickle@example.net> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:83.161.120.155) Gecko/20101006 Lightning/1.0b1 Thunderbird/3.0.9 MIME-Version: 1.0 To: derrickle@example.net, derrickle@example.net, Portals Discussion <derrickle@example.net>, derrickle@example.net Subject: Re: ApacheCON NA 2010 BOF/Meetup: A new Social/Widget/Gadget Portal Project? References: <derrickle@example.net> In-Reply-To: <derrickle@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, Just wanted to let you know we had an interesting Meetup at the ApacheCon in Atlanta. I added meeting notes to the end of the Meetup wiki page: http://wiki.apache.org/portals/MeetupAtlanta2010/ I hope to meet a lot of you at the European OpenSocial Event next month and see if we can continue the discussion there. Regards, Ate On 27/10/10 17:56, Ate Douma wrote: > [intentional cross-posting multiple lists] > > Dear all, > > Just sending this as a heads up across multiple user lists to inform you > about a BOF/Meetup we're organizing at the ApacheCON in Atlanta next > week which might be of interest to some of you. > > The above subject probably says it all, but for more information, please > check the Meetup wiki page at: > > http://wiki.apache.org/portals/MeetupAtlanta2010/ > > Short summary: we'd like to brainstorm with interested members of the > community and related projects (you!) about a possible > new OpenSocial/Widget/Gadget based Portal Project not based on or tied > to the Java Portlet specification. > What features should it provide and who would like to participate? > > If you're interested and at the ApacheCON next week, please come by on > Wednesday 3rd between approximately 20:00 to 22:00 in room 4. > For latest information about exact time and place and for other Meetups > at the ApacheCON, please check: > > http://wiki.apache.org/apachecon/ApacheMeetupsNa10 > > Hope to meet you there or elsewhere at the ApacheCON! > > Regards, > > Ate Douma > PMC Member Apache Portals > From derrickle@example.net Mon Nov 08 16:05:42 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 2692 invoked from network); 8 Nov 2010 16:05:42 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 8 Nov 2010 16:05:42 -0000 Received: (qmail 52440 invoked by uid 500); 8 Nov 2010 16:06:14 -0000 Delivered-To: derrickle@example.net Received: (qmail 52415 invoked by uid 500); 8 Nov 2010 16:06:13 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 52407 invoked by uid 99); 8 Nov 2010 16:06:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 16:06:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO itm01.itm.uni-luebeck.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 16:06:06 +0000 Received: from [83.161.120.155] (panaritium.itm.uni-luebeck.de [83.161.120.155]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by itm01.itm.uni-luebeck.de (Postfix) with ESMTPSA id 4141E83F8F9 for <derrickle@example.net>; Mon, 8 Nov 2010 17:05:43 +0100 (CET) Message-ID: <derrickle@example.net> Date: Mon, 08 Nov 2010 17:05:50 +0100 From: Peter Rothenpieler <derrickle@example.net> Organization: Institut =?ISO-8859-1?Q?f=FCr_Telematik=2C_Universit=E4?= =?ISO-8859-1?Q?t_zu_L=FCbeck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: derrickle@example.net Subject: Persistence of userPrefs References: <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net>,<derrickle@example.net> <derrickle@example.net> <derrickle@example.net> In-Reply-To: <derrickle@example.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, After getting my UserPref-Dialog to work (see other thread), I'm now trying to get the Persistence of my UserPref, using the AppDataService as proposed e.g. in [1]. I have successfully set up my AppDataService by implementing the AppDataService interface and binding it to the AppDataService.class in my AbstractModule. My intention is to use the AppDataService to e.g. set the UserPreferences upon clicking the "save" Button in the rendered Gadget-Preference-Panel. I understand that I need to implement my own UserPrefStore (in shindig-container.js) and the Function "shindig.DefaultUserPrefStore.prototype.savePrefs" is indeed called. However I'm currently missing the connection to my AppDataServce in the backend. I tried using the "osapi.appdata.update()" function as proposed in [1] but sadly my AppDataService isn't called. I'm getting an error message related a "malformed security token" (is this a good "sign"?): > 08.11.2010 17:02:33 org.apache.shindig.auth.AuthenticationServletFilter doFilter > INFO: Malformed security token -1:-1:*888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4*:0:default > org.apache.shindig.auth.SecurityTokenException: Malformed security token > at org.apache.shindig.auth.BasicSecurityTokenCodec.createToken(BasicSecurityTokenCodec.java:82) > at org.apache.shindig.auth.DefaultSecurityTokenCodec.createToken(DefaultSecurityTokenCodec.java:68) > at org.apache.shindig.auth.UrlParameterAuthenticationHandler.getSecurityTokenFromRequest(UrlParameterAuthen > ticationHandler.java:56) > at org.apache.shindig.auth.AuthenticationServletFilter.doFilter(AuthenticationServletFilter.java:84) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) So does this mean I am on the right way and just need to correct something regarding the security token or am I confusing some key concept of shindig in this aspect? -Peter [1] http://derrickle@example.net/msg01938.html From derrickle@example.net Mon Nov 08 17:45:41 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 61179 invoked from network); 8 Nov 2010 17:45:41 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 8 Nov 2010 17:45:41 -0000 Received: (qmail 84265 invoked by uid 500); 8 Nov 2010 17:46:12 -0000 Delivered-To: derrickle@example.net Received: (qmail 84219 invoked by uid 500); 8 Nov 2010 17:46:12 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 84211 invoked by uid 99); 8 Nov 2010 17:46:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 17:46:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of derrickle@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO col0-omc4-s18.col0.hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 17:46:07 +0000 Received: from COL102-W29 ([83.161.120.155]) by col0-omc4-s18.col0.hotmail.com with Microsoft SMTPSVC+1-720-534-9480); Mon, 8 Nov 2010 09:45:46 -0800 Message-ID: <derrickle@example.net> Content-Type: multipart/alternative; boundary="_260c822d-2bd1-4156-b981-cab2ac31d513_" X-Originating-IP: [83.161.120.155] From: Justin Wyllie <derrickle@example.net> To: <derrickle@example.net> Subject: RE: Persistence of userPrefs Date: Mon, 8 Nov 2010 17:45:46 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Nov 2010 17:45:46.0122 (UTC) FILETIME=[C5C21EA0:01CB7F6C] --_260c822d-2bd1-4156-b981-cab2ac31d513_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Peter As a quick response.. As I understand you have shindig.DefaultUserPrefStore.prototype.savePrefs w= hich is called. Assuming you get the name/value pair out of some params in that function as= I understand you you now plan to use the appData service to save the prefs= . Therefore you would need to call this service from within savePrefs.=20 I guess you could do this either by the Rest api or the JSON-RPC one: The notes for the Rest one: At this url http://wiki.opensocial.org/index.ph= p?title=3DDeveloper's_Guide_REST there is a section 'Creating AppData items= '. I guess you can skip the bit about the discovery document since you alr= eady know the url.=20 Or by JSON-RPC. I think you can include the necessary libraries in your con= tainer page in the line that looks like this: http://justin.sociallearndevi= g.open.ac.uk/gadgets/js/core:rpc.js?c=3D0&debug=3D1&nocache=3D1 . I'm not s= ure but I think if you add gadgets (as in core:gadgets:rpc:) to this you c= ould then construct an appData request in the same way you would in a gadge= t. Which one are you using? As far as malformed tokens go - whichever way you are doing the request if = you have a flag 'allow_anonymous_token' =3D> false=2C set in the config the= n it needs to be authenticated. In our case we have not yet set up oAuth. If you stick a valid security tok= en on either the end of the JSON-RPC request or the Rest request that worke= d for us. You should be able to get the token in your shindig.DefaultUserPr= efStore.prototype.savePrefs as there seems to be. magically=2C an element f= which gives you a handle for the iframe of the gadget from which you can g= et a security token - or just borrow one for testing. I don't know if this adds anything to what you've done regards Justin=20 > Date: Mon=2C 8 Nov 2010 17:05:50 +0100 > From: derrickle@example.net > To: derrickle@example.net > Subject: Persistence of userPrefs >=20 > Hi all=2C >=20 > After getting my UserPref-Dialog to work (see other thread)=2C I'm now > trying to get the Persistence of my UserPref=2C using the AppDataService > as proposed e.g. in [1]. I have successfully set up my AppDataService by > implementing the AppDataService interface and binding it to the > AppDataService.class in my AbstractModule. > My intention is to use the AppDataService to e.g. set the > UserPreferences upon clicking the "save" Button in the rendered > Gadget-Preference-Panel. I understand that I need to implement my own > UserPrefStore (in shindig-container.js) and the Function > "shindig.DefaultUserPrefStore.prototype.savePrefs" is indeed called. > However I'm currently missing the connection to my AppDataServce in the > backend. I tried using the "osapi.appdata.update()" function as proposed > in [1] but sadly my AppDataService isn't called. >=20 > I'm getting an error message related a "malformed security token" (is > this a good "sign"?): >=20 > > 08.11.2010 17:02:33 org.apache.shindig.auth.AuthenticationServletFilter= doFilter > > INFO: Malformed security token -1:-1:*888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4*:0:default > > org.apache.shindig.auth.SecurityTokenException: Malformed security toke= n > > at org.apache.shindig.auth.BasicSecurityTokenCodec.createToken(= BasicSecurityTokenCodec.java:82) > > at org.apache.shindig.auth.DefaultSecurityTokenCodec.createToke= n(DefaultSecurityTokenCodec.java:68) > > at org.apache.shindig.auth.UrlParameterAuthenticationHandler.ge= tSecurityTokenFromRequest(UrlParameterAuthen > > ticationHandler.java:56) > > at org.apache.shindig.auth.AuthenticationServletFilter.doFilter= (AuthenticationServletFilter.java:84) > > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilte= r(ServletHandler.java:1157) > > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl= er.java:388) > > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHa= ndler.java:216) > > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl= er.java:182) > > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl= er.java:765) > > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.= java:440) > > at org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co= ntextHandlerCollection.java:230) > > at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo= llection.java:114) > > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp= er.java:152) > > at org.mortbay.jetty.Server.handle(Server.java:326) > > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio= n.java:542) > > at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http= Connection.java:943) > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:= 218) > > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:= 404) > > at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn= dPoint.java:410) > > at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr= eadPool.java:582) >=20 > So does this mean I am on the right way and just need to correct > something regarding the security token or am I confusing some key > concept of shindig in this aspect? >=20 > -Peter >=20 > [1] http://derrickle@example.net/msg01938.html = --_260c822d-2bd1-4156-b981-cab2ac31d513_-- From derrickle@example.net Mon Nov 08 23:50:09 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 55504 invoked from network); 8 Nov 2010 23:50:09 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 8 Nov 2010 23:50:09 -0000 Received: (qmail 38049 invoked by uid 500); 8 Nov 2010 23:50:40 -0000 Delivered-To: derrickle@example.net Received: (qmail 38034 invoked by uid 500); 8 Nov 2010 23:50:40 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 38026 invoked by uid 99); 8 Nov 2010 23:50:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 23:50:40 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-yx0-f180.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 23:50:33 +0000 Received: by yxm8 with SMTP id 8so3882398yxm.39 for <derrickle@example.net>; Mon, 08 Nov 2010 15:50:12 -0800 (PST) MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id hm6mr4298847icb.136.1289260210794; Mon, 08 Nov 2010 15:50:10 -0800 (PST) Received: by 83.161.120.155 with HTTP; Mon, 8 Nov 2010 15:50:10 -0800 (PST) In-Reply-To: <derrickle@example.net> References: <derrickle@example.net> Date: Mon, 8 Nov 2010 15:50:10 -0800 Message-ID: <derrickle@example.net> Subject: Re: Persistence of userPrefs From: Paul Lindner <derrickle@example.net> To: derrickle@example.net Content-Type: multipart/alternative; boundary=20cf30549fc7e3306804949348c3 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30549fc7e3306804949348c3 Content-Type: text/plain; charset=ISO-8859-1 I'm really happy to see this work. Layering userprefs on top of AppData is something that I've wanted to see for a long time. On Mon, Nov 8, 2010 at 9:45 AM, Justin Wyllie <derrickle@example.net>wrote: > > > > > > Hi Peter > As a quick response.. > As I understand you have shindig.DefaultUserPrefStore.prototype.savePrefs > which is called. > Assuming you get the name/value pair out of some params in that function as > I understand you you now plan to use the appData service to save the prefs. > Therefore you would need to call this service from within savePrefs. > I guess you could do this either by the Rest api or the JSON-RPC one: > The notes for the Rest one: At this url > http://wiki.opensocial.org/index.php?title=Developer's_Guide_REST there is > a section 'Creating AppData items'. I guess you can skip the bit about the > discovery document since you already know the url. > Or by JSON-RPC. I think you can include the necessary libraries in your > container page in the line that looks like this: > http://justin.sociallearndevig.open.ac.uk/gadgets/js/core:rpc.js?c=0&debug=1&nocache=1. I'm not sure but I think if you add gadgets (as in core:gadgets:rpc:) to > this you could then construct an appData request in the same way you would > in a gadget. > Which one are you using? > As far as malformed tokens go - whichever way you are doing the request if > you have a flag 'allow_anonymous_token' => false, set in the config then it > needs to be authenticated. > In our case we have not yet set up oAuth. If you stick a valid security > token on either the end of the JSON-RPC request or the Rest request that > worked for us. You should be able to get the token in your > shindig.DefaultUserPrefStore.prototype.savePrefs as there seems to be. > magically, an element f which gives you a handle for the iframe of the > gadget from which you can get a security token - or just borrow one for > testing. > I don't know if this adds anything to what you've done > regards > Justin > > > > > > Date: Mon, 8 Nov 2010 17:05:50 +0100 > > From: derrickle@example.net > > To: derrickle@example.net > > Subject: Persistence of userPrefs > > > > Hi all, > > > > After getting my UserPref-Dialog to work (see other thread), I'm now > > trying to get the Persistence of my UserPref, using the AppDataService > > as proposed e.g. in [1]. I have successfully set up my AppDataService by > > implementing the AppDataService interface and binding it to the > > AppDataService.class in my AbstractModule. > > My intention is to use the AppDataService to e.g. set the > > UserPreferences upon clicking the "save" Button in the rendered > > Gadget-Preference-Panel. I understand that I need to implement my own > > UserPrefStore (in shindig-container.js) and the Function > > "shindig.DefaultUserPrefStore.prototype.savePrefs" is indeed called. > > However I'm currently missing the connection to my AppDataServce in the > > backend. I tried using the "osapi.appdata.update()" function as proposed > > in [1] but sadly my AppDataService isn't called. > > > > I'm getting an error message related a "malformed security token" (is > > this a good "sign"?): > > > > > 08.11.2010 17:02:33 org.apache.shindig.auth.AuthenticationServletFilter > doFilter > > > INFO: Malformed security token -1:-1:*888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4*:0:default > > > org.apache.shindig.auth.SecurityTokenException: Malformed security > token > > > at > org.apache.shindig.auth.BasicSecurityTokenCodec.createToken(BasicSecurityTokenCodec.java:82) > > > at > org.apache.shindig.auth.DefaultSecurityTokenCodec.createToken(DefaultSecurityTokenCodec.java:68) > > > at > org.apache.shindig.auth.UrlParameterAuthenticationHandler.getSecurityTokenFromRequest(UrlParameterAuthen > > > ticationHandler.java:56) > > > at > org.apache.shindig.auth.AuthenticationServletFilter.doFilter(AuthenticationServletFilter.java:84) > > > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > > > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) > > > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > > > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > > > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > > > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) > > > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > > > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > > > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > > > at org.mortbay.jetty.Server.handle(Server.java:326) > > > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > > > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943) > > > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > > > at > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > > > at > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > > > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > > > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > > > > So does this mean I am on the right way and just need to correct > > something regarding the security token or am I confusing some key > > concept of shindig in this aspect? > > > > -Peter > > > > [1] http://derrickle@example.net/msg01938.html > > > -- Paul Lindner -- derrickle@example.net -- linkedin.com/in/plindner --20cf30549fc7e3306804949348c3-- From derrickle@example.net Mon Nov 08 23:51:01 2010 Return-Path: <derrickle@example.net> Delivered-To: derrickle@example.net Received: (qmail 55653 invoked from network); 8 Nov 2010 23:51:01 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 8 Nov 2010 23:51:01 -0000 Received: (qmail 40995 invoked by uid 500); 8 Nov 2010 23:51:33 -0000 Delivered-To: derrickle@example.net Received: (qmail 40979 invoked by uid 500); 8 Nov 2010 23:51:33 -0000 Mailing-List: contact derrickle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:derrickle@example.net> List-Unsubscribe: <mailto:derrickle@example.net> List-Post: <mailto:derrickle@example.net> List-Id: <users.shindig.apache.org> Reply-To: derrickle@example.net Delivered-To: mailing list derrickle@example.net Received: (qmail 40971 invoked by uid 99); 8 Nov 2010 23:51:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 23:51:33 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail-gy0-f180.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 23:51:26 +0000 Received: by gyg8 with SMTP id 8so3888022gyg.39 for <derrickle@example.net>; Mon, 08 Nov 2010 15:51:05 -0800 (PST) MIME-Version: 1.0 Received: by 83.161.120.155 with SMTP id n16mr4301856ice.270.1289260264587; Mon, 08 Nov 2010 15:51:04 -0800 (PST) Received: by 83.161.120.155 with HTTP; Mon, 8 Nov 2010 15:51:04 -0800 (PST) In-Reply-To: <derrickle@example.net> References: <derrickle@example.net> <derrickle@example.net> Date: Mon, 8 Nov 2010 15:51:04 -0800 Message-ID: <derrickle@example.net> Subject: Re: Persistence of userPrefs From: Paul Lindner <derrickle@example.net> To: derrickle@example.net Content-Type: multipart/alternative; boundary=20cf301d44b41800e50494934c4f X-Virus-Checked: Checked by ClamAV on apache.org --20cf301d44b41800e50494934c4f Content-Type: text/plain; charset=ISO-8859-1 Oh, and the security token you mention is an 'anonymous' security token. Thus it's probably not going to play well with the AppData service. On Mon, Nov 8, 2010 at 3:50 PM, Paul Lindner <derrickle@example.net> wrote: > I'm really happy to see this work. Layering userprefs on top of AppData is > something that I've wanted to see for a long time. > > > On Mon, Nov 8, 2010 at 9:45 AM, Justin Wyllie <derrickle@example.net>wrote: > >> >> >> >> >> >> Hi Peter >> As a quick response.. >> As I understand you have shindig.DefaultUserPrefStore.prototype.savePrefs >> which is called. >> Assuming you get the name/value pair out of some params in that function >> as I understand you you now plan to use the appData service to save the >> prefs. Therefore you would need to call this service from within savePrefs. >> I guess you could do this either by the Rest api or the JSON-RPC one: >> The notes for the Rest one: At this url >> http://wiki.opensocial.org/index.php?title=Developer's_Guide_REST there >> is a section 'Creating AppData items'. I guess you can skip the bit about >> the discovery document since you already know the url. >> Or by JSON-RPC. I think you
{'source': 'Apache Software Foundation Public Mail Archives'}