Re: [Catalyst] [Announce][META] MojoMojo 0.999021 has been released to CPAN

2008-11-01 Thread Richard Thomas
Kinosearch++ We're using it at $work, linked to some CDBI triggers,  
and it works really well.


Building the equivalent functionality to search everything natively in  
the database more or less simultaneously could never be as blissfully  
simple.


cheers
RET

Sent from my iPhone

On 02/11/2008, at 11:51 AM, Dermot <[EMAIL PROTECTED]> wrote:


2008/11/1 Marcus Ramberg <[EMAIL PROTECTED]>:


I'm happy to mention that we're finally rid of Plucene.

...


0.999021  2008-11-01 01:47:00
  - Move search to KinoSearch


I was considering Lucene as the basis of an text search engine.
Lucence fans claim it's the industry standard.
http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm

I guess if you developing in a Perl env then KinoSearch should be your
choose. Having looked at the docs at
http://www.rectangular.com/kinosearch/docs/stable/KinoSearch/Docs/Tutorial.html

it makes sense so thanx for the heads up.
Dp.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] how to set a default (index.html) page (Template Toolkit used)

2008-11-01 Thread Devin Austin
well it's defined in Root.pm, the default() method.  It defaults to
$c->welcome_page (or something close).

Typically you use a template instead of a static HTML page for your default
page, so you'd simply set which template you want (which depending on your
set up is usually located in /root/).  default() is used for
404ing i believe, but if you're talking about an *index* page then you'll
want to set your template in the index() method.

HTH,

-Devin

On Sat, Nov 1, 2008 at 9:06 PM, <[EMAIL PROTECTED]> wrote:

>
> any ideas>?
>
> Quoting [EMAIL PROTECTED]:
>
> > hi guys
> >  i am fine tuning my application. Like the examples given in the
> > tutes,
> > the default page is to login the user.
> >
> >  How do I load a default page (ie index.html)?  Assume it is stored
> > in
> > /root/static.
> >
> > I was looking at Root.pm where the default behaviour of logging in
> > users
> > is defined.
> >
> >
> > Ta
> >
> > K. Akimoto
> >
> > ___
> > List: Catalyst@lists.scsys.co.uk
> > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> > Searchable archive:
> > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> > Dev site: http://dev.catalyst.perl.org/
> >
> >
> >
>
>
>
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- 
Devin Austin
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] how to set a default (index.html) page (Template Toolkit used)

2008-11-01 Thread kakimoto

any ideas>?

Quoting [EMAIL PROTECTED]:

> hi guys
>  i am fine tuning my application. Like the examples given in the
> tutes,
> the default page is to login the user.
> 
>  How do I load a default page (ie index.html)?  Assume it is stored
> in
> /root/static.
> 
> I was looking at Root.pm where the default behaviour of logging in
> users
> is defined.
> 
> 
> Ta
> 
> K. Akimoto
> 
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
> 
> 
> 




___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] [Announce][META] MojoMojo 0.999021 has been released to CPAN

2008-11-01 Thread Dermot
2008/11/1 Marcus Ramberg <[EMAIL PROTECTED]>:

>I'm happy to mention that we're finally rid of Plucene.
...
>
> 0.999021  2008-11-01 01:47:00
>- Move search to KinoSearch

I was considering Lucene as the basis of an text search engine.
Lucence fans claim it's the industry standard.
http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm

I guess if you developing in a Perl env then KinoSearch should be your
choose. Having looked at the docs at
http://www.rectangular.com/kinosearch/docs/stable/KinoSearch/Docs/Tutorial.html

it makes sense so thanx for the heads up.
Dp.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Catalyst::Plugin::XMLRPC/Catalyst::Component::ACCEPT_CONTEXT issue.

2008-11-01 Thread kevin montuori

hi all -- i have a trivial catalyst (version 5.7015) application using
the XMLRPC plugin (version 1.0) with two controllers

  lib/MyApp/Controller/API.pm
  lib/MyApp/Controller/API/SubGroup.pm

and one mixin class

  lib/MyApp/ControllerBase/Quux.pm

which uses the base class Catalyst::Component::ACCEPT_CONTEXT (version
0.05) and has one method:

  sub fancy {
my $self = shift;
my $c = $self->context;
print STDERR "context is: $c, ", (ref $c ? ref $c : "(not blessed)"), "\n";
  }

when i call this method from MyApp::Controller::API::test i see that $c
is a blessed MyApp object; when i call the same method from
MyApp::Controller::API::SubGroup::test the value of $c is the string
"MyApp" and is not blessed.  i'd have thought that the behavior would be
the same in both cases.

my question is: is my expectation incorrect and this is the correct
behavior or is there a bug somewhere?

i've included the three modules and MyApp.pm below, everything else in
the project is untouched.  thanks for any help!


cheers.
k.

-- 
kevin montuori
[EMAIL PROTECTED]

##
#
# lib/MyApp.pm
#

package MyApp;

use strict;
use warnings;
use Catalyst::Runtime '5.70';
use Catalyst qw/-Debug ConfigLoader Static::Simple XMLRPC/;
our $VERSION = '0.01';
__PACKAGE__->config( name => 'MyApp' );
__PACKAGE__->setup;

1;



##
#
# lib/MyApp/ControllerBase/Quux.pm
#

package MyApp::ControllerBase::Quux;

use strict;
use base qw[ Catalyst::Component::ACCEPT_CONTEXT ];

sub fancy {
  my $self = shift;
  my $c = $self->context;
  print STDERR "context is: $c, ", (ref $c ? ref $c : "(not blessed)"), "\n";
}

1;


##
#
# lib/MyApp/Controller/API.pm
# 

package MyApp::Controller::API;

use strict;
use base qw[ Catalyst::Controller 
 MyApp::ControllerBase::Quux ];

sub default : Private {
  my ($self, $c) = @_;
  $c->xmlrpc;
}

sub test : XMLRPC {
  my ($self, $c) = @_;
  $self->fancy;
  return "Test Succeeded.";
}

1;


##
#
# lib/MyApp/Controller/API/SubGroup.pm
#

package MyApp::Controller::API::SubGroup;

use strict;
use base qw[ MyApp::Controller::API ];

sub test : XMLRPC {
  my ($self, $c) = @_;
  $self->fancy;
  return "Test Succeeded";
}

1;

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/