[cgiapp] questions on CGI::Application, Class::DBI::Loader

2006-04-09 Thread James.Q.L
Hi, all I was asking this question on perlmonks but no response so far. http://www.perlmonks.org/?node_id=542103 probably i should have asked here :) question Hi, I am new to C::A and Class::DBI. I have two questions during the learning process. 1. In my C::A script, I have

Re: [cgiapp] questions on CGI::Application, Class::DBI::Loader

2006-04-10 Thread James.Q.L
--- Michael Peters [EMAIL PROTECTED] wrote: Giannis Economou wrote: Hello... James.Q.L wrote: Hi, I am new to C::A and Class::DBI. I have two questions during the learning process. 1. In my C::A script, I have $self-mode_param( path_info= 1 ); then i

Re: [cgiapp] questions on CGI::Application, Class::DBI::Loader

2006-04-10 Thread James.Q.L
--- Giannis Economou [EMAIL PROTECTED] wrote: Hello... James.Q.L wrote: Hi, I am new to C::A and Class::DBI. I have two questions during the learning process. 1. In my C::A script, I have $self-mode_param( path_info= 1 ); then i will request http://localhost/movie/945

Re: [cgiapp] questions on CGI::Application, Class::DBI::Loader

2006-04-11 Thread James.Q.L
--- Michael Peters [EMAIL PROTECTED] wrote: James.Q.L wrote: --- Michael Peters [EMAIL PROTECTED] wrote: Giannis Economou wrote: Hello... James.Q.L wrote: Hi, snip the 2.0 release has more functions added in and look promising. I don't have much experiences

Re: [cgiapp] Re: Long running modes - how to display please wait?

2006-05-29 Thread James.Q.L
--- Mark Stosberg [EMAIL PROTECTED] wrote: On 2006-04-27, B Wooster [EMAIL PROTECTED] wrote: I've seen people use Javascript (changing text on a page), using redirects, etc to handle the case where a please wait screen has to be shown on a submit. Are there best practices on doing this

Re: [cgiapp] ValidateRM question

2007-01-27 Thread James.Q.L
--- Robert Hicks [EMAIL PROTECTED] wrote: How do I use the various Data::FormValidator built-in constraints like 'zip_or_postcode' and 'email' and the like? Do I need to use Data::FormValidator::Constraints qw(:closures); to get those built-ins before I use them? here is what did use

Re: [cgiapp] Re: Curiosity poll?

2007-02-13 Thread James.Q.L
--- Jason Purdy [EMAIL PROTECTED] wrote: I added the votes up and also surveyed the #cgiapp folks: HT: 7 (Karen, Renee, Ed, Joel, John, Jason, CromeDome) TT: 4 (Adrian, Dan, Barry, hide) Both: 2 (mpeters, Scott) I'm a HT guy, myself. I like how it doesn't have a lot of the

[cgiapp] runmode return scalar reference ?

2007-05-13 Thread James.Q.L
hi, poking through C::A src code and i noticed that one can return a scalar reference as output from a runmode. as indicated by the followying lines from run subroutine. # Support scalar-ref for body return my $bodyref = (ref($body) eq 'SCALAR') ? $body : \$body; # Build up total output my

[cgiapp] better msg handling in FormValidator ?

2007-08-07 Thread James.Q.L
Hi, i am using C::A::P::ValidateRM and it has been great. one thing i don't like what i am doing is the way of organizing customized message for form error. currently i have something like this: constraint_methods = { a_field = sub { my ($dfv, $val) = @_;

Re: [cgiapp] better msg handling in FormValidator ?

2007-08-09 Thread James.Q.L
-- Michael Peters [EMAIL PROTECTED] wrote: James.Q.L wrote: i am wondering how are other people using DFV and i would like to adopt a simpler and maintaintable way.. I usually have a custom method that I pass as the value for 'msgs' that creates a hash of error flags for me

Re: [cgiapp] better msg handling in FormValidator ?

2007-08-10 Thread James.Q.L
--- Michael Peters [EMAIL PROTECTED] wrote: James.Q.L wrote: [snip] but it does give you the real flexiablity of setting up customized message. one question though, if a field (say username) required at least lenght of 6 and contain only number and alphabet. how do you show

Re: [cgiapp] prerun and errormode handling

2007-09-21 Thread James.Q.L
--- Lee Carmichael [EMAIL PROTECTED] wrote: Hello Everyone, I need to capture exceptions caused in the cgiapp_prerun sub. In my situation, I want to verify a set of environmental parts that are used in many run modes. So instead of verifying these each time, I would like to do it in

Re: [cgiapp] How to integrate a module?

2008-01-13 Thread James.Q.L
sorry, didn't have time to read through your email. you should check out the wiki, this page maybe help http://www.cgi-app.org/index.cgi?OrganizeApp also search the list archive as this is a question asked few times before. James. --- [EMAIL PROTECTED] wrote: SUMMARY: How should I

Re: [cgiapp] code reuse.

2008-03-16 Thread James.Q.L
--- Mark Fuller [EMAIL PROTECTED] wrote: 1. You're storing $dbh and $uuid as a param in C::A. Why are you passing them as parameters instead of retrieving them from param? I store ONLY $uuid in param because i need it in other controller. i am passing $dbh to Company:: modules because these

Re: [cgiapp] code reuse.

2008-03-17 Thread James.Q.L
--- Mark Fuller [EMAIL PROTECTED] wrote: On Sun, Mar 16, 2008 at 4:31 PM, James.Q.L [EMAIL PROTECTED] wrote: I store ONLY $uuid in param because i need it in other controller. i am passing $dbh to Company:: modules because these modules are not inherited from C::A. The example your

Re: [cgiapp] code reuse.

2008-03-17 Thread James.Q.L
--- Mark Fuller [EMAIL PROTECTED] wrote: On Mon, Mar 17, 2008 at 7:05 AM, James.Q.L [EMAIL PROTECTED] wrote: I might be missing the point, but what's wrong with storing $uuid in Company::Util as an our variable and accessing it from anywhere as $Company::Util::uuid ? correct me

[cgiapp] a new app powered by CGI::Application

2008-08-22 Thread James.Q.L
hi, I don't remember seeing anyone send email about hey, this app is powered by CGI::Application on this list recently.. or forever. but i just wrote one that helps me organize reading digest. it is quite simple - register an account then type up anything worth to save.. the app is at

Re: [cgiapp] Best email module?

2009-01-31 Thread James.Q.L
--- Lyle webmas...@cosmicperl.com wrote: Michael Peters wrote: Stewart Heckenberg wrote: I like MIME::Lite -- has a very simple attachment interface :) MIME::Lite is what I've used in the past, although the Perl Email folks don't recommend it. Apparently it's very crufty on the

[cgiapp] cgi::application::dispatch doesn't handle start_mode

2011-03-05 Thread James.Q.L
Hi, It seems that C::A::D always sets the runmode to $rm_HTTP_METHOD even when $rm is not set, which produces a _HTTP_METHOD runmode. that' doesn't work when start_mode is expected to be run. it is due to the following code in the sub dispatch { } from CAD, if( $auto_rest ) {

Re: [cgiapp] cgi::application::dispatch doesn't handle start_mode

2011-03-10 Thread James.Q.L
-0800, James.Q.L wrote: Hi, It seems that C::A::D always sets the runmode to $rm_HTTP_METHOD even when $rm is not set, which produces a _HTTP_METHOD runmode. that' doesn't work when start_mode is expected to be run. it is due to the following code in the sub dispatch { } from CAD

Re: [cgiapp] cgi::application::dispatch doesn't handle start_mode

2011-03-11 Thread James.Q.L
Thanks for reporting it on RT. I think C::A::D should respect C::A's start_mode. If no rm is defined in C::A::D rules, the start_mode in the dispatched module should be used. A sentence of describing the use of start_mode in C::A::D is sufficient. James. --- On Fri, 3/11/11, Ron Savage

[cgiapp] nginx fastcgi configuration problem for C::A app

2012-08-01 Thread James.Q.L
Hello, I am trying to get a C::A app work in nginx fastcgi environment (debian 6.0) and using spawn-fcgi. C::A route is configured using $self-mode_param( path_info= 1, param = 'rm' );   the problem is that whatever C::A app urls (example.com/cities, example.com/profile/ etc )  I am