Re: [cgiapp] packages autouse?

2009-06-12 Thread Porta
I saw it, but unless I use the superloader, it still need to define the names of the modules I want to use.And, regarding the superloader, I'm lazy enough to want to use all the packages within a given folder, but not just every possible module in the world... Still, a good suggestion. On Fri,

Re: [cgiapp] packages autouse?

2009-06-12 Thread Michael Peters
Porta wrote: I saw it, but unless I use the superloader, it still need to define the names of the modules I want to use.And, regarding the superloader, I'm lazy enough to want to use all the packages within a given folder, but not just every possible module in the world... Still, a good

Re: [cgiapp] packages autouse?

2009-06-12 Thread Porta
nicemuch closer, indeed. On Fri, Jun 12, 2009 at 10:09 AM, Michael Peters mpet...@plusthree.comwrote: Porta wrote: I saw it, but unless I use the superloader, it still need to define the names of the modules I want to use.And, regarding the superloader, I'm lazy enough to want

[cgiapp] CAD, dispatch table and config file

2009-06-12 Thread Porta
Anyone solved having the dispatch table for CAD on a external config file instead on the dispatch package itself?If yes, which config file format? # CGI::Application community mailing list #### ## To unsubscribe,

Re: [cgiapp] packages autouse?

2009-06-12 Thread Rhesa Rozendaal
Michael Peters wrote: Porta wrote: I saw it, but unless I use the superloader, it still need to define the names of the modules I want to use.And, regarding the superloader, I'm lazy enough to want to use all the packages within a given folder, but not just every possible module in the world...

Re: [cgiapp] CAD, dispatch table and config file

2009-06-12 Thread Michael Peters
Porta wrote: Anyone solved having the dispatch table for CAD on a external config file instead on the dispatch package itself?If yes, which config file format? There's no support for that directly. If you wanted to do it you'd have to code up something manually. You'd also need to make

Re: [cgiapp] packages autouse?

2009-06-12 Thread Richard Jones
Rhesa Rozendaal wrote: Heh, I use Module::Pluggable for that in my startup.pl: use Module::Pluggable require = 1, search_path = [qw( My Other::Stuff )]; __PACKAGE__-plugins; That would load everything under My::* and Other::Stuff::*. Can Module::Pluggable be used as an alternative to

Re: [cgiapp] packages autouse?

2009-06-12 Thread Jaldhar H. Vyas
On Fri, 12 Jun 2009, Richard Jones wrote: Can Module::Pluggable be used as an alternative to Module::Find? I load all my Model::DB classes up front in a BEGIN block in MyApp::Base, like this: BEGIN { use Module::Find; Module::Find::setmoduledirs('path/to/lib'); Module::Find::useall

[cgiapp] protected_mode not found

2009-06-12 Thread P Kishor
Hi, this problem is driving me batty... with $self-authen-protected_runmodes('view'); CAD croaks saying [Dispatch] ERROR' for request '/app/view': RM 'view' not found, referer: http://localhost/app/welcome If I comment out the authen-protected_runmodes line, CAD can find the 'view' runmode

[cgiapp] Re: protected_mode not found

2009-06-12 Thread P Kishor
On Fri, Jun 12, 2009 at 11:46 AM, P Kishorpunk.k...@gmail.com wrote: Hi, this problem is driving me batty... with $self-authen-protected_runmodes('view'); CAD croaks saying  [Dispatch] ERROR' for request '/app/view': RM 'view' not found, referer: http://localhost/app/welcome If I