[Catalyst] changing the port
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 an external redirection using $c->res->redirect and in this case, I don't know how to make a correct redirection that works no matter the ports I use. I am accessing the url http://www.server-name.com:8080/details/deep and it should redirect to the main directory (/): http://www.server-name.com:8080/ I have tried: $c->res->redirect($c->uri_for("/")); and $c->res->redirect($c->res->base); But both methods redirect to: http://www.server-name.com/ (To the port 80 instead of 8080). I have used dump_info=1 to see where appears the port 8080, and I have seen that it appears only in the following request header: 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. 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? Thank you very much. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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 proxy with a ProxyPassReverse directive. If Catalyst isn't noticing that it's on port 83 and including that in the redirect, it should. - Perrin ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Reaction Authentication
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::User::ResetPassword; Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword; Reaction::InterfaceModel::Action::User::ChangePassword; Reaction::InterfaceModel::Action::User::ResetPassword; Reaction::InterfaceModel::Action::User::SetPassword; It appears that Reaction already has some facilities to do auth stuff. How can I use this classes to help me? Thanks a lot, -- Jonas ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst vs Rails vs Django Cook off
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 Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst vs Rails vs Django Cook off
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.org/msg02329.html Perhaps a quick archive search can answer your next question faster than I can. Cheers, Brian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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 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 front end server with $c->uri_for that includes the port. It should pull the port from X-Forwarded-Host, IIRC. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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.catalyst.perl.org/browser/trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache.pm $host = $c->request->header( 'X-Forwarded-Host' ); if ( $host =~ /^(.+):(\d+)$/ ) { $host = $1; $port = $2; } Maybe print out that headers on your back-end Catalyst and see what the front end is sending to make sure the port is included. -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] login and C-P-Authentication-Store-DBIC
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 corresponding vhost, with Apache-1.33-mod_perl ; also, no problem with the real server before the upgrade from C-5.7001 to 5.7006 - but now...) But at the real server, the (only) difference is that C::P::Session is at Version=13 (not 12) and I get this error: "Can't locate object method "search" via package "Catalyst::Base" at /usr/share/perl5/Catalyst/Plugin/Authentication/Store/DBIC/User.pm line 19." from the execution of $c->login(username,password). Because I use CDBI, is a need to substitute Auth::Store::DBIC (-0.07 and Authentication=0.09)? Many Thanks for to clarify this question, --vb ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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+)$/ ) { $host = $1; $port = $2; } Maybe print out that headers on your back-end Catalyst and see what the front end is sending to make sure the port is included. -- Bill Moseley Hi, 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? If I do $c->res->redirect($c->res->base); ... it doesn't work, because it redirects to http://www.server.com/ and not to the port it uses. Is there a way of doing this automaticly, or I will need to get the port manually as you described, then to redirect to the host + port? Thanks. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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 front end server with $c->uri_for that includes the port. It should pull the port from X-Forwarded-Host, IIRC. I have also tried commenting out the ProxyPassReverse line in httpd.conf, and used in the Catalyst controller: $c->res->redirect($c->uri_for("/")); But it still redirects to the port 80 (without specifying any port). Am I doing something wrong? Thanks. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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 started up my front/back server on my host "bumby" with the front end listening on 8080 (the back end listens to 18080). I added this to a template: uri = c.uri_for('/'); "uri = [$uri]\n" | stderr; And in my logs I have: uri = [http://bumby:8080/] -- Bill Moseley [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] info basic stash problem...maybe i am too tired this sunday
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', 'ka-1-406-194' => '0', 'ka-111-194-479' => '1', 'ka-1-451-540' => '0', 'ka-1-254-610' => '0', 'ka-1-216-571' => '0', ... more data... }; into the stash e.g. $c->stash->{allegati} = $chiavi; then i would like to use something like [ FOREACH ... %] ... [% currentkey = ...%] [% allegati.currentkey %] The problem is this last [% allegati.currentkey %] is always empty even if i am sure i am asking for an existing key of the hash ref. What am i doing wrong? I know it is something silly ... but still makes me doubt about my comprehension of the stash Any wise suggestion? Igor ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Reaction Authentication
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::InterfaceModel::Action::DBIC::User::ResetPassword; Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword; Reaction::InterfaceModel::Action::User::ChangePassword; Reaction::InterfaceModel::Action::User::ResetPassword; Reaction::InterfaceModel::Action::User::SetPassword; It appears that Reaction already has some facilities to do auth stuff. How can I use this classes to help me? Thanks a lot, -- Jonas Not having used Reaction myself BUT I suspect that these are for updating existing profile info in the DB. Do the authentication the same way you would in a normal Catalyst app. Ash ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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', 'ka-5-21-629' => '0', 'ka-1-406-194' => '0', 'ka-111-194-479' => '1', 'ka-1-451-540' => '0', 'ka-1-254-610' => '0', 'ka-1-216-571' => '0', ... more data... }; into the stash e.g. $c->stash->{allegati} = $chiavi; then i would like to use something like [ FOREACH ... %] ... [% currentkey = ...%] [% allegati.currentkey %] The problem is this last [% allegati.currentkey %] is always empty even if i am sure i am asking for an existing key of the hash ref. What am i doing wrong? I know it is something silly ... but still makes me doubt about my comprehension of the stash Any wise suggestion? Yes - show us the code for the action and the full template - the info you've given isn't enough do divine the problem. Ash ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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.ro ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] C::C::FormBuilder
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 %]. [% field.label %] works fine, and I'm seeing a list of my fields. [% formbuilder.start %] and [% formbuilder.end %] produce expected output. However, [% field.tag %] produces no output, for any field. The final output is: Location Timezone Where, obviously, I'm expecting some honking great s inside those s. I'd be very grateful if someone could lend me a spare Clue. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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', > 'ka-1-254-610' => '0', > 'ka-1-216-571' => '0', > ... more data... > }; This is a hashref, not a list ... > > [ FOREACH ... %] Doesn't FOREACH iterate over a list? > I know it is something silly ... but still makes me doubt about my > comprehension of the stash I think it's a TT problem rather than a stash problem. You might want to investigate the keys method in Template::Manual::VMethods: [% FOREACH key = allegati.keys %] Key: [% key %] Value: [% allegati.$key %] [% END %] works in a quick local test, for example. Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ This is not an automated signature. I type this in to the bottom of every message. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] changing the port
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.conf: ProxyPreserveHost On I was using only ProxyRequests Off, ProxyPass and ProxyPassReverse directives. Do you have any idea what could be the following lines in httpd.conf? [Sun Jan 14 17:04:36 2007] [error] [client 127.0.0.1] request failed: error reading the headers [Sun Jan 14 20:56:13 2007] [error] proxy: HTTP: disabled connection for (localhost) Thank you very much for your help. Octavian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::C::FormBuilder
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 [% 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 %]. [% field.label %] works fine, and I'm seeing a list of my fields. [% formbuilder.start %] and [% formbuilder.end %] produce expected output. However, [% field.tag %] produces no output, for any field. The final output is: Location Timezone Where, obviously, I'm expecting some honking great s inside those s. I'd be very grateful if someone could lend me a spare Clue. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/ catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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 > > > > $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', > > 'ka-1-254-610' => '0', > > 'ka-1-216-571' => '0', > > ... more data... > > }; > > > > into the stash e.g. $c->stash->{allegati} = $chiavi; > > then i would like to use something like > > > > > > [ FOREACH ... %] > > ... > > > > [% currentkey = ...%] > > > > > > [% allegati.currentkey %] > > > > > > The problem is this last [% allegati.currentkey %] is always empty even > > if i am sure i am asking for an existing key of the hash ref. > > What am i doing wrong? > > I know it is something silly ... but still makes me doubt about my > > comprehension of the stash > > > > Any wise suggestion? > > Yes - show us the code for the action and the full template - the info > you've given isn't enough do divine the problem. Though I do not understand what you are trying to do either, you may try: [% FOREACH entry=allegati %] [% entry.key %]: [% entry.value %] [% END %] Hope it helps, Sébastien > > Ash > > ___ > List: Catalyst@lists.rawmode.org > Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ > Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] info basic stash problem...maybe i am too tired this sunday
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) the values to printed out depend on keys which are built at runtime inside the page template ( lets pretend i take the keys from another data structure ) now the question: if $c->stash->{allegati} is a reference to a plain hash ( e.g. {'3-bc-4' => 'alpha', ,'t-rt-7' => 'omega'} ) and i have 1 key of that hash in a variable of the page template, how do i print its hash value ? [% k % ] # k = '3-bc-4' [% allegati %] # prints HASH(0x2398423794 whatever) [% allegati.k %] # is nullor doesnt work as i expected ---> how can I print out 'alpha'? I do beg your pardon for any miscomprehension due to my lack of vocabulary or inesperience. Thanks again for your already precious efforts in trying to understand ... :) i. Ash Berlin ha scritto: > 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', >> 'ka-5-21-629' => '0', >> 'ka-1-406-194' => '0', >> 'ka-111-194-479' => '1', >> 'ka-1-451-540' => '0', >> 'ka-1-254-610' => '0', >> 'ka-1-216-571' => '0', >> ... more data... >> }; >> >> into the stash e.g. $c->stash->{allegati} = $chiavi; >> then i would like to use something like >> >> >> [ FOREACH ... %] >> ... >> >> [% currentkey = ...%] >> >> >> [% allegati.currentkey %] >> >> >> The problem is this last [% allegati.currentkey %] is always empty even >> if i am sure i am asking for an existing key of the hash ref. >> What am i doing wrong? >> I know it is something silly ... but still makes me doubt about my >> comprehension of the stash >> >> Any wise suggestion? > > Yes - show us the code for the action and the full template - the info > you've given isn't enough do divine the problem. > > Ash > > ___ > List: Catalyst@lists.rawmode.org > Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.rawmode.org/ > Dev site: http://dev.catalyst.perl.org/ > > -- Igor Longagnani c/o Synervis --- e-mail: [EMAIL PROTECTED] phone : +39 059 558442 sede operativa: via Pirandello, 49/51 - 41043 Formigine (Mo) Italia ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst::Model::Xapian usage
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 something, of course. The internal docs for Xapian are pretty good, but the perl docs and usage examples are very very slim. Does anyone have examples or experience they could share? Thanks, Richard ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::C::FormBuilder
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 Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::C::FormBuilder
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: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Model::Xapian usage
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 uses S::X::Mset::Tied, which hides it. > > Unless I'm missing something, of course. The internal docs for Xapian > are pretty good, but the perl docs and usage examples are very very > slim. > > Does anyone have examples or experience they could share? Personally, I wrote my own model to Xapian. I also wound up re-writing the query parser, because I needed things like range searching and regular expression support. (And different, or no, stop words) Pretty much all of the functionality in the CPP docs is directly analagous to perl, in my experience. Catalyst::Model::Xapian is a handy thing for the most common implementation of Xapian: as an integrated web site search engine. Much more, and you are probably going to just want to write your own. That said, I'm sure he would appreciate pathes to return the MSet instead of Mset::Tied. Adam ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] error
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 undefined value as a HASH reference at > D:/usr/site/lib/Catalyst/Model/DBI.pm line 86 during global destruction. What was the argument you supplied to the test script? What does your TranzactiiBursiere.pm look like? What is printed when CATALYST_DEBUG is on? As we always say; things like relevant log messages, an answer to "what are you trying to achieve?", etc. can help us answer your questions more easily. We're not mind readers, for cryin' out loud. -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup; ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] C::C::FormBuilder
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 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: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/ catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/