Re: [Catalyst] Catalyst::View::JSON sends a file

2010-01-14 Thread Edmund von der Burg
2010/1/12 Tomas Doran bobtf...@bobtfish.net: Your browser will do whatever it normally does with the mime type you're sending. By changing settings or mime types you'll probably be able to convince it to display the JSON. Or just install the FireFox addon 'JSONView' which will show you the

Re: [Catalyst] InstancePerContext doesn't work in schema

2010-01-14 Thread Tomas Doran
Steve Kleiman wrote: Having trouble with InstancePerContext in a schema. This won't work. Ever. InstancePerContext only works on Catalyst components, the schema isn't a component, the MyApp::Model::DB class is the component.. You'll want to add InstancePerContext to the model class and get

[Catalyst] C:E:HTTP:Restarter problem after upgrading

2010-01-14 Thread Sven Eppler
Hi There, i was using Catalyst version 5.80007 without any problems. Yesterday i updated through the cpan-programm zu version 5.80018. My old Catalyst-Applications (created with catalyst.pl under version 5.80007) now struggle to start in auto-restart-mode with the error: = % SNIP %

Re: [Catalyst] C:E:HTTP:Restarter problem after upgrading

2010-01-14 Thread Sven Eppler
Hmm, no, that doesn't seem to be the real reason. When looking at C::E::H::Restarter it was last included into Catalyst::Runtime in Version 5.8000_07. I found a thread on the archive about the changed restarter http://lists.scsys.co.uk/pipermail/catalyst/2009-May/022260.html An i also got this

Re: [Catalyst] C:E:HTTP:Restarter problem after upgrading

2010-01-14 Thread Christoph Friedrich
Has you tried to install/update it via CPAN? Sven Eppler schrieb: Hmm, no, that doesn't seem to be the real reason. When looking at C::E::H::Restarter it was last included into Catalyst::Runtime in Version 5.8000_07. I found a thread on the archive about the changed restarter

Re: [Catalyst] C:E:HTTP:Restarter problem after upgrading

2010-01-14 Thread Tomas Doran
Sven Eppler wrote: Hmm, no, that doesn't seem to be the real reason. When looking at C::E::H::Restarter it was last included into Catalyst::Runtime in Version 5.8000_07. I found a thread on the archive about the changed restarter http://lists.scsys.co.uk/pipermail/catalyst/2009-May/022260.html

Re: [Catalyst] C:E:HTTP:Restarter problem after upgrading

2010-01-14 Thread Sven Eppler
Ahh, thanks, this little info just scrolled through the screen since there where a lot Controllers, Views, etc. Works fine now. :) Am Donnerstag, den 14.01.2010, 14:50 + schrieb Tomas Doran: Sven Eppler wrote: Hmm, no, that doesn't seem to be the real reason. When looking at

[Catalyst] modules for conditional GET ?

2010-01-14 Thread Dami Laurent (PJ)
Hi Catalysters, For some actions of a Catalyst app, I would like to implement conditional GET (using If-Modified-Since HTTP header), where the timestamp of one config file decides whether the page should be refreshed or not --- this is because that page is quite expensive to compute. This

[Catalyst] Password Encrypting Authentication

2010-01-14 Thread Jon
Hello, I'm using Catalyst for 5.80015, and having a bit of trouble syncing my password authentication with my encrypting. I'm using Catalyst::Plugin::Authentication in order to authenticate users, and I'm using DBIx::Class::EncodedColumn in order to encrypt passwords as they are inserted (when a

[Catalyst] Login authentication using C::HTML::FormBuilder ...

2010-01-14 Thread Kiffin Gish
I'm using C::HTML::FormBuilder for a simple login form and would like to use the standard $c-authenticate() for validation. This means that I either have to pass ctx = $c to $form-process(), more tightly coupling the controller to the form, or do all of the $c-authenticate() stuff after

Re: [Catalyst] modules for conditional GET ?

2010-01-14 Thread Kiffin Gish
There's a good example using the 'Cache-Control' header in the new Catalyst book, Chapter 11, section 'Deploy with a Cache'. On Thu, 2010-01-14 at 16:05 +0100, Dami Laurent (PJ) wrote: Hi Catalysters, For some actions of a Catalyst app, I would like to implement conditional GET (using

Re: [Catalyst] modules for conditional GET ?

2010-01-14 Thread Octavian Rasnita
From: Dami Laurent (PJ) laurent.d...@justice.ge.ch Hi Catalysters, For some actions of a Catalyst app, I would like to implement conditional GET (using If-Modified-Since HTTP header), where the timestamp of one config file decides whether the page should be refreshed or not --- this is because

Re: [Catalyst] InstancePerContext doesn't work in schema

2010-01-14 Thread Steve Kleiman
Hey Tomas. Thank you very much for responding. The challenge I've got is that sometimes I want a schema object to act on a date or time. However to do that properly, it needs access to the current user's time zone and locale. I gather you're suggesting I just pass in the time zone and locale

Re: [Catalyst] Password Encrypting Authentication

2010-01-14 Thread Tomas Doran
Jon wrote: Ideally I would like EncodedColumn to use the basic unix encryption that C::P::Authentication uses when password_type='crypted'. You're meant to be using password_type = 'self_check' with EncodedColumn, then the user row is responsible for both encrypting the password and checking

Re: [Catalyst] Password Encrypting Authentication

2010-01-14 Thread Jon
Ideally I would like EncodedColumn to use the basic unix encryption that C::P::Authentication uses when password_type='crypted'. You're meant to be using password_type = 'self_check' with EncodedColumn, then the user row is responsible for both encrypting the password and checking the

[Catalyst] Catalyst-View-Email question

2010-01-14 Thread Steve Kleiman
Forgive me if there's another mailing list I should've posted this at. It didn't seem to squarely fit the Catalyst list because it may be a mailer issue. Not sure. I'm trying to use Catalyst::View::Email and Catalyst::View::Email::Template. The error I get is: [debug] C::V::Email::Template