Re: [Catalyst] how to get controller path

2007-11-20 Thread Alok Sharma
On Tuesday 20 November 2007 18:22:54 Matt S Trout wrote: > On Tue, Nov 20, 2007 at 12:27:32PM +0530, Alok Sharma wrote: > > Given a path we have ways to get the uri using the method uri_for(path). > > Is there a possible way to get the controller path given the uri so I am > > able to do some thin

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Jason Kohles
On Nov 20, 2007, at 5:28 PM, Matt S Trout wrote: On Tue, Nov 20, 2007 at 04:34:54PM -0500, Jason Kohles wrote: 1. I run squid on my laptop, bound only to the localhost interface and with ACLs that only allow localhost to use it as a general-purpose proxy, then I login to the remote host with

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Andrew Rodland
On Tuesday 20 November 2007 03:34:54 pm Jason Kohles wrote: > CPAN::Mini only mirrors the most recent version of each module, so the > size is much smaller than you might expect (I believe a minicpan > mirror can still fit on a CD-ROM, although I haven't checked that > recently...) It just misses.

Re: [Catalyst] Session/Authentication/Authorization for legacy + Cat

2007-11-20 Thread Kieren Diment
On 21 Nov 2007, at 11:13, Ashley Pond V wrote: Mail.app is either doing something squirrelly or my mail host is. I think it's your mail host (sent with mail.app ;-) ) ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/m

Re: [Catalyst] Session/Authentication/Authorization for legacy + Cat

2007-11-20 Thread Ashley Pond V
On Nov 20, 2007, at 2:29 PM, Matt S Trout wrote: On Tue, Nov 20, 2007 at 08:41:02PM -, Peter Edwards wrote: On Mon, Nov 19, 2007 at 11:03:24PM -0800, Ashley Pond V wrote: "Let Catalyst handle /login. Make legacy code get user out of session. That's a really good way so long as you can m

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 10:16:30AM -0800, Mesdaq, Ali wrote: > Someone said they were going to write a advent calendar entry for using > local::lib so I was waiting for that. But just wanted to share my > solution as an alternative because some shared hosts are big pains to > work with. Some don't

Re: [Catalyst] Session/Authentication/Authorization for legacy + Cat

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 08:41:02PM -, Peter Edwards wrote: > >On Mon, Nov 19, 2007 at 11:03:24PM -0800, Ashley Pond V wrote: > >> I'm working on some session code which I'd like to be able to use > >> with legacy code (non-Cat) and Cat... > >> For authentication/authorization though I can't f

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 04:34:54PM -0500, Jason Kohles wrote: > 1. I run squid on my laptop, bound only to the localhost interface and > with ACLs that only allow localhost to use it as a general-purpose > proxy, then I login to the remote host with a port forward and run > cpanp (or cpan) wi

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Jason Kohles
On Nov 20, 2007, at 3:42 PM, John Goulah wrote: On Nov 20, 2007 1:16 PM, Mesdaq, Ali <[EMAIL PROTECTED]> wrote: Someone said they were going to write a advent calendar entry for using local::lib so I was waiting for that. But just wanted to share my solution as an alternative because some sha

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread John Goulah
On Nov 20, 2007 1:16 PM, Mesdaq, Ali <[EMAIL PROTECTED]> wrote: > Someone said they were going to write a advent calendar entry for using > local::lib so I was waiting for that. But just wanted to share my > solution as an alternative because some shared hosts are big pains to > work with. Some do

RE: [Catalyst] Session/Authentication/Authorization for legacy + Cat

2007-11-20 Thread Peter Edwards
>On Mon, Nov 19, 2007 at 11:03:24PM -0800, Ashley Pond V wrote: >> I'm working on some session code which I'd like to be able to use >> with legacy code (non-Cat) and Cat... >> For authentication/authorization though I can't find a(n obvious) >> path for both legacy and Cat. >> >> Any tales fr

Re: [Catalyst] Session/Authentication/Authorization for legacy + Cat

2007-11-20 Thread Matt S Trout
On Mon, Nov 19, 2007 at 11:03:24PM -0800, Ashley Pond V wrote: > I'm working on some session code which I'd like to be able to use > with legacy code (non-Cat) and Cat. No problem. Apache::Session > (::Flex) and CGI::Session both have Cat plugins so either one will > migrate fine (seems like C

Re: [Catalyst] how to get controller path

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 08:30:58AM -0600, Peter Karman wrote: > > > On 11/20/2007 06:52 AM, Matt S Trout wrote: > > On Tue, Nov 20, 2007 at 12:27:32PM +0530, Alok Sharma wrote: > >> Hi, > >> Need a bit of help. > >> Given a path we have ways to get the uri using the method uri_for(path). > >> Is

RE: [Catalyst] Shared Host Setup

2007-11-20 Thread Mesdaq, Ali
Someone said they were going to write a advent calendar entry for using local::lib so I was waiting for that. But just wanted to share my solution as an alternative because some shared hosts are big pains to work with. Some don't even allow outbound connections so using cpan is not an option. So yo

Re: [Catalyst] PathPart help

2007-11-20 Thread Matt S Trout
On Mon, Nov 19, 2007 at 09:41:06AM +0100, Dami Laurent (PJ) wrote: > >-Message d'origine- > >De : Matt S Trout [mailto:[EMAIL PROTECTED] > >Envoyé : samedi, 17. novembre 2007 12:40 > > [ snip ] > > > > >What I'd do instead is - > > > >package MyApp::ControllerBase::HasObject; > > > >sub

Re: [Catalyst] Shared Host Setup

2007-11-20 Thread Matt S Trout
On Mon, Nov 19, 2007 at 12:25:37PM -0800, Mesdaq, Ali wrote: > So I tired something I been meaning to test out. So I created a vmware > image of freebsd and created the full path I would have on my shared > host and downloaded and installed perl to that path. Then I ran cpan > downloading every mod

Re: [Catalyst] Patch to make ConfigLoader load "local" files

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 01:37:49PM +, John Tate wrote: > > Sorry. This time with an attachment... You still seem to have missed the rest of the patch. Try doing a diff -ur so it picks up the test changes as well. -- Matt S Trout Catalyst and DBIx::Class consulting and support -

Re: [Catalyst] Patch to make ConfigLoader load "local" files

2007-11-20 Thread Brian Cassidy
John, John Tate wrote: I've been trying to get C::P::ConfigLoader (0.18) to load "local" configuration files. From my reading of the documentation, if have a Config::General configuration file called "myapp.conf", I should be able to load another file named something like "myapp_local.conf", b

Re: [Catalyst] PageCache and SubRequest

2007-11-20 Thread Peter Karman
On 11/20/2007 04:39 AM, Kyoko Shikamata wrote: > Hello All, > > I have a trouble about PageCache(Cache::FileCache) and SubRequest . > The part using SubRequest of the page cannot be cached often . > > - Controller : > use Catalyst qw/SubRequest Cache::FileCache PageCache/; > > __PACKAGE__->c

Re: [Catalyst] how to get controller path

2007-11-20 Thread Peter Karman
On 11/20/2007 06:52 AM, Matt S Trout wrote: > On Tue, Nov 20, 2007 at 12:27:32PM +0530, Alok Sharma wrote: >> Hi, >> Need a bit of help. >> Given a path we have ways to get the uri using the method uri_for(path). >> Is there a possible way to get the controller path given the uri so I am >> abl

Re: [Catalyst] Patch to make ConfigLoader load "local" files

2007-11-20 Thread John Tate
Sorry. This time with an attachment... John Tate wrote: Hi, I've been trying to get C::P::ConfigLoader (0.18) to load "local" configuration files. From my reading of the documentation, if have a Config::General configuration file called "myapp.conf", I should be able to load another file n

[Catalyst] Patch to make ConfigLoader load "local" files

2007-11-20 Thread John Tate
Hi, I've been trying to get C::P::ConfigLoader (0.18) to load "local" configuration files. From my reading of the documentation, if have a Config::General configuration file called "myapp.conf", I should be able to load another file named something like "myapp_local.conf", but I've not been

Re: [Catalyst] how to get controller path

2007-11-20 Thread Matt S Trout
On Tue, Nov 20, 2007 at 12:27:32PM +0530, Alok Sharma wrote: > Hi, > Need a bit of help. > Given a path we have ways to get the uri using the method uri_for(path). > Is there a possible way to get the controller path given the uri so I am > able > to do some thing like this > $c->res->redi

[Catalyst] PageCache and SubRequest

2007-11-20 Thread Kyoko Shikamata
Hello All, I have a trouble about PageCache(Cache::FileCache) and SubRequest . The part using SubRequest of the page cannot be cached often . - Controller : use Catalyst qw/SubRequest Cache::FileCache PageCache/; __PACKAGE__->config->{page_cache} = { expires => 300, set_http_headers =>