Re: [cgiapp] Open source applications written using CGI::Application

2011-06-14 Thread Gabor Szabo
sorry for the late reply, I got distracted by work and screencasts.

On Tue, May 31, 2011 at 5:03 PM, Michael Peters mpet...@plusthree.com wrote:
 On 05/30/2011 04:30 AM, Gabor Szabo wrote:

 - Krang http://www.krangcms.com/ was last touched 2 years ago (is it
 still used?)

 We've been really bad about keeping the website up to date. We actually just
 made a new release 2 months ago.

Is there any plan to upload it to CPAN?


 -Smolder - if I am not mistake in is using CGI::Application but it is not
 listed

 Yes, it's CGI::Application based.

I tried to install it on Strawberry Perl 5.12.3. It pulled in lots of
CPAN modules including
Class::DBI (I thought it is not in fashion any more :)
and some of the prereqs had to be force installed but in the end
Smolder refused to install:
I sent the failure to the RT queue.

https://rt.cpan.org/Public/Bug/Display.html?id=68808

regards
   Gabor

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Open source applications written using CGI::Application

2011-06-14 Thread Gabor Szabo
On Mon, May 30, 2011 at 12:02 PM, Ron Savage r...@savage.net.au wrote:
 Hi Gabor

 On Mon, 2011-05-30 at 11:30 +0300, Gabor Szabo wrote:
 Hi,


 - App::Office::Contacts and
 - App::Office::Contacts::Donations
   are on CPAN. I'll take a look at them.

 Ron, are they already production ready applications?

 Yes.


I tried to install App::Office::Contacts on my Ubuntu 10.10 that comes
with perl 5.10.1
There is a prerequisite:

 requires:
!  File::Copy (2.14) is installed, but we need version = 2.18

but then CPAN tells me:

The most recent version 2.21 of the module File::Copy
is part of the perl-5.13.9 distribution. To install that, you need to run
  force install File::Copy   --or--
  install J/JE/JESSE/perl-5.13.9.tar.gz

Then the actual installation of the module worked:

Warning: Prerequisite 'File::Copy = 2.18' for
'RSAVAGE/App-Office-Contacts-1.16.tgz' failed when processing
'JESSE/perl-5.13.9.tar.gz' with 'make = NO isa perl'. Continuing, but
chances to succeed are limited.
Building App-Office-Contacts

So I don't know if you really need that recent version of File::Copy -
I see 5.12.3 came with File::Copy 2.18 - or if the
required version number could be reduced.


regards
   Gabor

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] Open source applications written using CGI::Application

2011-06-14 Thread Michael Peters
On 06/14/2011 02:49 AM, Gabor Szabo wrote:

 Is there any plan to upload it to CPAN?

It's not a simple matter of uploading it to CPAN. Krang handles it's own 
dependencies including Apache and mod_perl and bundles/builds it all 
together. It would take a lot of work to make it work as a normal CPAN 
distribution and probably not worth it since you still can't specify 
exact module version requirements for CPAN installs.

 I tried to install it on Strawberry Perl 5.12.3. It pulled in lots of
 CPAN modules including
 Class::DBI (I thought it is not in fashion any more :)

It isn't in fashion anymore, but it was still used when Smolder was 
started and I haven't felt the need to change that since it works just fine.

 and some of the prereqs had to be force installed but in the end
 Smolder refused to install:
 I sent the failure to the RT queue.

It'll probably sit there for a while. Smolder's never been run on a 
windows machine and I don't have one (nor the inclination really) to 
help out with that. Patches would be welcome though as long as someone 
else is willing to maintain them.

-- 
Michael Peters
Plus Three, LP

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] can't display and validate only in one run mode with CAP::Plugin::ValidateRM ?

2011-06-14 Thread silent
O, change $ENV{REQUEST_METHOD} to GET before check_rm()  works.

2011/6/15 silent silent2...@gmail.com:
 Hi, list

 can I do displaying form and validate form only in one run mode ?

 # run mod
 sub register {
     if ( GET request ) {
         #display form
     }elsif ( POST requst ) {

        #validate
    }
 }


 I read a little code in CAP::Plugin::ValidateRM, seems the validation
 will call this run mode again,
 so it will always run into the POST request condition ? a loop ?


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####