[Catalyst] changing the port

2007-01-14 Thread Octavian Rasnita
Hi all, I have made an application that I use with mod_perl on a back-end server on port 83, and the front-end server is an Apache proxy that listens on port 8080 for the moment, and after testing I want to change it to port 80. The application works, but at a certain moment I need to make a

Re: [Catalyst] changing the port

2007-01-14 Thread Perrin Harkins
Octavian Rasnita wrote: Is there a recommended method to get the correct port of the original request that works no matter if the application runs using a proxy server or not? You need it to set the port to whatever your backend server listens on (83 you said?) and then you rewrite it in your

[Catalyst] Reaction Authentication

2007-01-14 Thread Jonas Alves
Hi all, I was starting to put authentication in a Reaction application that i'm developing when I saw that Reaction has this classes: Reaction::InterfaceModel::Action::DBIC::Role::CheckUniques; Reaction::InterfaceModel::Action::DBIC::User::ChangePassword; Reaction::InterfaceModel::Action::DBIC::U

[Catalyst] Catalyst vs Rails vs Django Cook off

2007-01-14 Thread Octavian Rasnita
Hi, Here is ablog I just found. Is it true that Catalyst is so slow comparing with other frameworks? http://letsgetdugg.com/category/rails Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Se

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2007-01-14 Thread Brian Kirkbride
Octavian Rasnita wrote: Hi, Here is ablog I just found. Is it true that Catalyst is so slow comparing with other frameworks? http://letsgetdugg.com/category/rails Octavian See the exhaustive thread in which this was discussed earlier: http://www.mail-archive.com/catalyst@lists.rawmode.o

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
On Sun, Jan 14, 2007 at 10:03:43AM -0500, Perrin Harkins wrote: > Octavian Rasnita wrote: > >Is there a recommended method to get the correct port of the original > >request that works no matter if the application runs using a proxy > >server or not? > > You need it to set the port to whatever y

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
On Sun, Jan 14, 2007 at 11:28:54AM +0200, Octavian Rasnita wrote: > x-forwarded-host > > I think I could get the port number from this request header, but in that > case it would work only if I use the application with a proxy server. That should work. Look at C::Engine::Apache: http://dev.cat

[Catalyst] login and C-P-Authentication-Store-DBIC

2007-01-14 Thread vb
I use CDBI - not DBIC - and I have the "classical" tables User, Role, UserRole (Authentication Authentication::Store::DBIC Authentication::Credential::Password Authorization::Roles) At home I have a Catalyst from Debian, with C::P::Session at Version=12 (and no problem with myApp from the corre

Re: [Catalyst] changing the port

2007-01-14 Thread Octavian Rasnita
From: "Bill Moseley" <[EMAIL PROTECTED]> That should work. Look at C::Engine::Apache: http://dev.catalyst.perl.org/browser/trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache.pm $host = $c->request->header( 'X-Forwarded-Host' ); if ( $host =~ /^(.+):(\d+)$/ ) { $

Re: [Catalyst] changing the port

2007-01-14 Thread Octavian Rasnita
From: "Bill Moseley" <[EMAIL PROTECTED]> You need it to set the port to whatever your backend server listens on (83 you said?) and then you rewrite it in your proxy with a ProxyPassReverse directive. I don't use ProxyPassReverse in my front-end Apache config. Catalyst builds URLs for the fron

Re: [Catalyst] changing the port

2007-01-14 Thread Bill Moseley
On Sun, Jan 14, 2007 at 06:55:28PM +0200, Octavian Rasnita wrote: > I have tried it, and yes, the host and port are well taken this way. > But how should I redirect automaticly to the base directory (/) including > the port? What does warn $c->uri_for('/'); show in the logs? I just start

[Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Igor Longagnani
Hi, newbie here... i thought i had understood stash behaviour... but prolly not :) I can use it together with DBIx::Class resultsets and so on, BUT now i would like to put such an hashref $chiavi= { 'ka-111-234-586' => '0', 'ka-90-85-349' => '0', 'ka-5-21-629' => '0

Re: [Catalyst] Reaction Authentication

2007-01-14 Thread Ash Berlin
Jonas Alves wrote: Hi all, I was starting to put authentication in a Reaction application that i'm developing when I saw that Reaction has this classes: Reaction::InterfaceModel::Action::DBIC::Role::CheckUniques; Reaction::InterfaceModel::Action::DBIC::User::ChangePassword; Reaction::Interface

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Ash Berlin
Igor Longagnani wrote: Hi, newbie here... i thought i had understood stash behaviour... but prolly not :) I can use it together with DBIx::Class resultsets and so on, BUT now i would like to put such an hashref $chiavi= { 'ka-111-234-586' => '0', 'ka-90-85-349' => '0',

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Bogdan Lucaciu
On Sunday 14 January 2007 20:30, Igor Longagnani wrote: > [% allegati.currentkey %] try allegati.$currentkey $ is the way to clarify this (otherwise ambigous) construct. read http://www.template-toolkit.org/docs/plain/Manual/Variables.html#Variable_Interpolation -- Bogdan Lucaciu http://www.wiz

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Perrin Harkins
Igor Longagnani wrote: [% allegati.currentkey %] Are you trying to get $allegati->{$currentkey}? That would be this: [% allegati.$currentkey %] - Perrin ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/cata

[Catalyst] C::C::FormBuilder

2007-01-14 Thread Neil de Carteret
Sunday night brain-strain. I'm trying out C::C::FormBuilder with TT. The form object works, and [% FormBuilder.render %] in the TT produces a dinky little form. I need to handle a particular field a particular way, so I'm iterating over the fields with [% FOREACH field IN formbuilder.fields %]

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Chisel Wright
On Sun, Jan 14, 2007 at 07:30:06PM +0100, Igor Longagnani wrote: > $chiavi= { > 'ka-111-234-586' => '0', > 'ka-90-85-349' => '0', > 'ka-5-21-629' => '0', > 'ka-1-406-194' => '0', > 'ka-111-194-479' => '1', > 'ka-1-451-540' => '0', >

Re: [Catalyst] changing the port

2007-01-14 Thread Octavian Rasnita
From: "Bill Moseley" <[EMAIL PROTECTED]> What does warn $c->uri_for('/'); show in the logs? Ok, I've solve it. Even though the $host and $port were correct, $c->uri_for("/") wasn't printing the full url correctly (without the port). But this was because I have forgotten to add in httpd.c

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Victor Igumnov
just a heads up when you iterate through the fields in that fashion you lose all of formbuilder's JS validation code. -Victor On Jan 14, 2007, at 10:56 AM, Neil de Carteret wrote: Sunday night brain-strain. I'm trying out C::C::FormBuilder with TT. The form object works, and [% FormBuilde

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Sébastien Wagener
On Sun, 2007-01-14 at 19:01 +, Ash Berlin wrote: > Igor Longagnani wrote: > > Hi, newbie here... > > i thought i had understood stash behaviour... but prolly not :) > > > > I can use it together with DBIx::Class resultsets and so on, BUT now i > > would like to put such an hashref > > > > $c

Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday

2007-01-14 Thread Igor Longagnani
As supposed i wastoo confused in my question, surely it wont get any better ..anyway let's try :) 1) I am into a controller and I have an hashref that I punt into the stash : $c->stash->{allegati} = $chiavi 2) in the template i wanna print out some of the values of the $chiavi referenced hash 3)

[Catalyst] Catalyst::Model::Xapian usage

2007-01-14 Thread Richard Jolly
Hi, I've been playing with Catalyst::Model::Xapian. Works nicely, but it seems to hide some functionality. I'd like to get information on the match percentage, and that seems to available in Search::Xapian::MSet - but C::M::X uses S::X::Mset::Tied, which hides it. Unless I'm missing somethin

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Juan Camacho
On 1/14/07, Neil de Carteret <[EMAIL PROTECTED]> wrote: [% field.tag %] Use [% field.field %]. There is a documentation fix not up on CPAN yet. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searcha

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Juan Camacho
On 1/14/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: just a heads up when you iterate through the fields in that fashion you lose all of formbuilder's JS validation code. I think that statement is incorrect. [% form.jshead %] works for me. ___ List:

Re: [Catalyst] Catalyst::Model::Xapian usage

2007-01-14 Thread Adam Jacob
On Sun, Jan 14, 2007 at 11:42:03PM +, Richard Jolly wrote: > I've been playing with Catalyst::Model::Xapian. Works nicely, but it > seems to hide some functionality. I'd like to get information on the > match percentage, and that seems to available in Search::Xapian::MSet - > but C::M::X use

Re: [Catalyst] error

2007-01-14 Thread Jonathan Rockway
On Saturday 13 January 2007 07:57, Octavian Rasnita wrote: > If I do: > > perl TranzactiiBursiere.pm Don't do that. pm means "Perl Module", which you can't run. > I have also tried using the program tranzactiibursiere_test.pl, but it > gives another error: > > (in cleanup) Can't use an undefine

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Victor Igumnov
that is for custom JS code you have added. The default javascript code from formbuilder is omitted when you iterate through the fields. Try it out for your self. -Victor On Jan 14, 2007, at 4:12 PM, Juan Camacho wrote: On 1/14/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: just a heads up w