[jifty-devel] Wifty SearchPage?

Jesse Vincent jesse at bestpractical.com
Thu Apr 19 12:22:07 EDT 2007


Thanks. Applied


On Thu, Apr 19, 2007 at 09:17:42AM -0700, David Good wrote:
> On Thu, Apr 19, 2007 at 11:47:31AM -0400, Jesse Vincent wrote:
> > Nelson Elhage wrote:
> > >On Wed, Apr 18, 2007 at 11:18:02PM -0700, David Good wrote:
> > >  
> > >>I apologize in advance for being a n00b -- I'm a pretty good Perl 
> > >>programmer,
> > >>but I don't know much about web programming (which is what attracted me to
> > >>Jifty).
> > >>
> > >>I've been looking at Wifty (from the svn tree) as a template for some 
> > >>things
> > >>I'd like to do.  I noticed that in Wifty's Dispatcher.pm and a couple of 
> > >>other
> > >>places there is a mention of a SearchPage action class but I can't figure 
> > >>out
> > >>where that class is defined.  Is it some sort of development thing where 
> > >>it
> > >>gets autogenerated like the Create, Update and Delete actions that isn't
> > >>documented or have I just missed it somehow?
> > >>    
> > >
> > >It's automatically created like the other actions, yes. perldoc
> > >Jifty::Action::Record::Search should hopefully get you started.
> > >  
> > 
> > A patch to Jifty::ClassLoader to explain it would be hugely appreciated.
> > Best,
> > Jesse
> 
> 
> Here you go:
> 
> --- ClassLoader.pm.orig	2007-04-19 09:14:55.000000000 -0700
> +++ ClassLoader.pm	2007-04-19 09:14:00.000000000 -0700
> @@ -95,12 +95,13 @@
>  it creates a subclass of L<Jifty::Collection> whose C<record_class> is
>  C<I<Application>::Model::I<Something>>.
>  
> -=item I<Application>::Action::(Create or Update or Delete)I<Anything>
> +=item I<Application>::Action::(Create or Update or Delete or Search)I<Anything>
>  
> -If C<I<Application>::Model::I<Something>> is a valid model class, then
> -it creates a subclass of L<Jifty::Action::Record::Create>,
> -L<Jifty::Action::Record::Update>, or L<Jifty::Action::Record::Delete>
> -whose I<record_class> is C<I<Application>::Model::I<Something>>.
> +If C<I<Application>::Model::I<Something>> is a valid model class, then it
> +creates a subclass of L<Jifty::Action::Record::Create>,
> +L<Jifty::Action::Record::Update>, L<Jifty::Action::Record::Delete> or
> +L<Jifty::Action::Record::Search> whose I<record_class> is
> +C<I<Application>::Model::I<Something>>.
>  
>  =back
>  
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> 

-- 


More information about the jifty-devel mailing list