Re: [Catalyst] IE Cookie problems

2006-12-18 Thread vb
I have them same problem. resolved, by adding in the Myapp::end() sub, the line: $c->res->headers->header('Cache-Control' => 'no-cache, max-age=0'); In MyApp.pm: use Catalyst qw/ Session Session::Store::FastMmap Session::State::Cookie Authentication Authentication::Sto

Re: [Catalyst] IE Cookie problems

2006-12-18 Thread Mojo Nichols
I have them same problem. I got MyApp to work with the Authentication example under firefox. Under IE7 and IE6 no cookies are set. I have another catalyst example that just uses cookies no Session Session::Store:FastMmap... etc and those cookies work okay. Any ideas or known issues(

Re: [Catalyst] C::P::Email and testing

2006-12-18 Thread Jonathan Rockway
Daniel McBrearty wrote: > OK. That does work if I use : > > $c->SUPER::email($c, @_); Don't use SUPER. Don't pass $c twice. Use NEXT::email(@_) (from NEXT) or next::method(@_) (from Class::C3), since SUPER and Catalyst don't get along. Regards, Jonathan Rockway # terse because I haven't slept

Re: [Catalyst] C::P::Email and testing

2006-12-18 Thread Daniel McBrearty
OK. That does work if I use : $c->SUPER::email($c, @_); to call the superclass. Interestingly, if I use SUPER.pm ... : package Catalyst::Plugin::EmailTestable; use strict; use warnings; use base qw ( Catalyst::Plugin::Email ); use SUPER; sub email { my $c = shift; my $super = $c->super('em

Re: [Catalyst] C::P::Email and testing

2006-12-18 Thread Jonathan Rockway
Daniel McBrearty wrote: > ... but I'm thinking, how can one plugin inherit from another? $self > isn't passed ... Your plugin ISA Catalyst, so instead of $self, you get a $c. Subclassing should work. $c->next::method(@_) or whatever; -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(

Re: [Catalyst] C::P::Email and testing

2006-12-18 Thread Daniel McBrearty
I'm not completely following the action class thing, but the way that seems most logical to me is to write a plugin C::P::EmailTestable that subclasses C::P::Email sub email { if (my $location = $c->config->{test_email}) { # write a temporary file into $location, and put the filename on the st

Re: [Catalyst] Virtual file system

2006-12-18 Thread Robert 'phaylon' Sedlacek
vti wrote: > Thanks for sharing experience. Have you ever thought about the way to somehow > distiguish command from param? Like /material/bunch/of/params/:action > > But probably ?-way is better then reinventing the wheel. It could be great if > there were some recomendations on this kind of que

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Jonathan Rockway
Juan Miguel Paredes wrote: > Well, just to laugh at myself, I had the same problem after > transferring the application from laptop to another machine via usb > flash drive (only directories and files containing all uppercase names > where copied in lowercase... in my case, it was > MyApp::View::HT

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Alejandro Imass
Well, I did transfer from Linux ext3 to a USB drive that is in FAT32 and then onto the server back into ext3 [1]. This was something that I had not done before and as Chris and Juan Miguel have mentioned I have also been a victim of case-change by the USB Drive. In my case, it's because I created

Re: [Catalyst] Virtual file system

2006-12-18 Thread vti
Robert 'phaylon' Sedlacek wrote: > vti wrote: > > Actually I just want to stay in no-?-params style. I really like chaining > > things when you have something like /material/1232/edit. > > And what if you want to edit something named edit? > > /material/edit/edit > > You could even get around

Re: [Catalyst] Virtual file system

2006-12-18 Thread Robert 'phaylon' Sedlacek
vti wrote: > Actually I just want to stay in no-?-params style. I really like chaining > things when you have something like /material/1232/edit. And what if you want to edit something named edit? /material/edit/edit You could even get around that, but what about viewing something named 123/e

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Christopher H. Laco
Juan Miguel Paredes wrote: > Well, just to laugh at myself, I had the same problem after > transferring the application from laptop to another machine via usb > flash drive (only directories and files containing all uppercase names > where copied in lowercase... in my case, it was > MyApp::View::HT

Re: [Catalyst] has something like DBI's fetchrow_hashref()?

2006-12-18 Thread Sébastien Wagener
On Mon, 2006-12-18 at 14:11 +0100, Robert 'phaylon' Sedlacek wrote: > Wan wrote: > > hello everyone, > > > > I use DBIx::Class in my Catalyst project. > > As a note: This is _not_ a Catalyst question! Except that you access > your model via Catalyst, it is all only DBIx-Class here. DBIC has > sep

Re: [Catalyst] Virtual file system

2006-12-18 Thread vti
Hermida, Leandro wrote: > > > From: vti [mailto:[EMAIL PROTECTED] > > Subject: [Catalyst] Virtual file system > > > > Hello. > > > > I was wondering if there is an elegant way to make > > web-navihation looks like your hard drive. For example I have > > materials that could be organazied that

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Juan Miguel Paredes
On 12/18/06, Alejandro Imass <[EMAIL PROTECTED]> wrote: Thank You! That was the problem. I created a soft link with capital TT and it is now working. Can anyone explain why this has happened Is this a version problem? The application is working fine in my development laptop and _was_ workin

Re: [Catalyst] Virtual file system

2006-12-18 Thread vti
Robert 'phaylon' Sedlacek wrote: > vti wrote: > > > Everything seems like great, but how to organize basic CRUD? For example > > i want to add material in some 'folder': > > > > /materials/personal/.../add > > Could you elaborate on why you seem to want to have one action for each > folder? I'd

Re: [Catalyst] Virtual file system

2006-12-18 Thread David Morel
Hermida, Leandro a écrit : > > This brings to mind a related question, is there a module in CPAN which > > automatically generates a nice collapsable/uncollapsable hierarchical > > tree view inside a web page automatically from an XML or YAML file? > > > > Leandro HTML::PopupTreeSelect::Dynamic is

Re: [Catalyst] has something like DBI's fetchrow_hashref()?

2006-12-18 Thread Robert 'phaylon' Sedlacek
Wan wrote: > hello everyone, > > I use DBIx::Class in my Catalyst project. As a note: This is _not_ a Catalyst question! Except that you access your model via Catalyst, it is all only DBIx-Class here. DBIC has separete documentation and a separate mailinglist. > my $cfg = $c->model('RTDB::Config

Re: [Catalyst] Virtual file system

2006-12-18 Thread Robert 'phaylon' Sedlacek
vti wrote: > Everything seems like great, but how to organize basic CRUD? For example > i want to add material in some 'folder': > > /materials/personal/.../add Could you elaborate on why you seem to want to have one action for each folder? I'd rather have /material/view/x/y/z /material/add

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Alejandro Imass
Thank You! That was the problem. I created a soft link with capital TT and it is now working. Can anyone explain why this has happened Is this a version problem? The application is working fine in my development laptop and _was_ working fine on this server also. Then all of a sudden it stopp

RE: [Catalyst] Virtual file system

2006-12-18 Thread Hermida, Leandro
> From: vti [mailto:[EMAIL PROTECTED] > Subject: [Catalyst] Virtual file system > > Hello. > > I was wondering if there is an elegant way to make > web-navihation looks like your hard drive. For example I have > materials that could be organazied that way. > > \ root > -> personal > ->

[Catalyst] has something like DBI's fetchrow_hashref()?

2006-12-18 Thread Wan
hello everyone, I use DBIx::Class in my Catalyst project. my $cfg = $c->model('RTDB::Config')->search({Name => $c->req->param("name")})->first; .. $cfg->Name; $cfg->Value; I want to get a hash ref that like this . $cfg->{Name}; $cfg->{Value}; Thanks for any help

[Catalyst] Virtual file system

2006-12-18 Thread vti
Hello. I was wondering if there is an elegant way to make web-navihation looks like your hard drive. For example I have materials that could be organazied that way. \ root -> personal -> story1 -> story2 -> public -> ... -> .. Where material belongs_to material, and has_m

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread John Beppu
vdc::View::tt doesn't seem to exist in the files you attached. However, you do have a vdc::View::TT -- note the capital "T"s. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://ww

Re: [Catalyst] Couldn't forward to "vdc::View::tt". Does not implement "process"

2006-12-18 Thread Ash Berlin
package vdc::View::TT; # I suspect this is why Alejandro Imass wrote: Actually, all controllers are failing at the time of rendering the template. I have now attached startup debug log, other relevant files. I can put the whole app for download if required. The complete Catalyst debug screen c