Hey Chris.

Thanks so much. It works now. Only one thing, I changed rest data url to 
/social/rest instead of /shindig/php/social/rest.


--- On Tue, 7/8/08, Chris Chabot <[EMAIL PROTECTED]> wrote:

> From: Chris Chabot <[EMAIL PROTECTED]>
> Subject: Re: list friends gadget on partuza
> To: shindig-dev@incubator.apache.org
> Cc: [EMAIL PROTECTED]
> Date: Tuesday, July 8, 2008, 2:20 AM
> Hmm probably the configuration to make shindig use
> partuza's data  
> interfaces? :)
> 
> Edit shindig/config/container.js, change:
> "path" : "/social/data", to
> "path" : "/shindig/php/social/rest",
> "useRestful" : false to "useRestful" :
> true
> 
> Create a shindig/php/config/local.php with something like:
> <?php
> $shindigConfig = array(
>          'people_service' =>
> 'PartuzaPeopleService',
>          'activity_service' =>
> 'PartuzaActivitiesService',
>          'app_data_service' =>
> 'PartuzaAppDataService',
>          'extension_class_paths' =>
> '/path/to/partuza/Shindig'
>    );
> 
> then edit partuza/Shindig/PartuzaDbFetcher.php and change:
> $this->db = mysqli_connect('localhost',
> 'root', '', 'partuza'); and
> $this->url_prefix = 'http://partuza';
> to the right settings (yes making this config pretty'er
> is high on my  
> list)
> 
> and then edit partuza/html/config.php and change these to
> your local  
> settings:
> 'gadget_server'    => 'http://shindig',
> 'db_host'          => 'localhost',
> 'db_user'          => 'root',
> 'db_passwd'        => '',
> 'db_database'      => 'partuza',
> 'db_port'          => '3306',
> 
> Ps this is all for using the new RESTful API, but
> that's the way of  
> the future and better to invest time in then the old wire
> format  
> protocol.
> 
> After this make sure you clean your cache directory (rm -rf
> /tmp/ 
> shindig on a *nix host), and try again .. you should have a
> working  
> setup at this stage.
> 
> Let me know how it works out for you!
> 
>       -- Chris
> 
> On Jul 8, 2008, at 6:15 AM, xin zhang wrote:
> 
> > Hi Chris,
> >
> > I checked out partuza (reversion 82) and entered a
> friend to  
> > database, the friend is shown on the web page. Then I
> installed the  
> > following gadgets:
> > <Module>
> > <ModulePrefs title="Gifts part 1 -
> Friends">
> > <Require feature="opensocial-0.7"/>
> > </ModulePrefs>
> > <Content type="html">
> >
> >       <script
> src="http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.7/gifts_1_friends.js
> 
> > "></script>
> >       <script>
> >         gadgets.util.registerOnLoadHandler(init);
> >       </script>
> >       <div id='main'>
> >         Your friends:
> >         <div id='friends'></div>
> >       </div>
> >
> > </Content>
> > </Module>
> >
> > It is not returning the list of friend. However, it
> works on http://www.partuza.nl/ 
> > , it did return friend list there. What am I missing
> here?
> >
> > Thanks
> >
> >
> >


      

Reply via email to