Skip Menu |

This queue is for tickets about the CGI-Application-Structured-Tools CPAN distribution.

Report information
The Basics
Id: 66858
Status: resolved
Priority: 0/
Queue: CGI-Application-Structured-Tools

People
Owner: VANAMBURG [...] cpan.org
Requestors: my.roges [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cas-starter.pl
Date: Thu, 24 Mar 2011 15:08:10 +0100
To: bug-CGI-Application-Structured-Tools [...] rt.cpan.org
From: Alexx Roche <my.roges [...] gmail.com>
Thank you for CAS - It is just what I wanted for my MVC webApp, but I think I have found a bug: This, (with the cryptic errors from DBIx::Class) caught me for a whole day. $ cas-starter.pl --module=MyApp1 \ --author=gordon \ --email="vanamburg@cpan.org" \ --verbose $ grep schema MyApp1/lib/MyApp1.pm schema => '::DB', and it /should/ be schema => 'MyApp1::DB', "There are no known bugs for this distribution." sounded so serious that I believed it. Thanks again for your work. alexx p.s. If you want to exand your tutorial, a "Deployment guide for $webserver and shared webservers" would have helped me, though that might be something for CGI::Application to cover.
uname -a Linux laptop 2.6.31-22-generic #70-Ubuntu SMP Wed Dec 1 23:51:13 UTC 2010 i686 GNU/Linux perl -version This is perl, v5.10.0 built for i486-linux-gnu-thread-multi grep VER /usr/local/share/perl/5.10.0/CGI/Application/Structured.pm use vars qw($VERSION); $VERSION = '0.003';
RT-Send-CC: my.roges [...] gmail.com
Alexx, Thank you for filing this bug report. Your participation, in the form of analysis, reporting and time are very much appreciated. I will fix the bugs that you have identified and push a new version to CPAN today. You will be notified of course. I am interested to know anything about how you found CAS, what you find most useful about it. From your reports, I see ways to make CAS easier to use. The bug fixes you requested will get out today, but the suggested deployment tutorial is a bit bigger and I don't think I will be able to include it. Having a deployment instruction would be a good idea. I could do something like that for installing as a cgi script on Apache 2 on Ubuntu 10.04 LTS. If you wanted put something in, I could add it and list you as a contributor too. Thanks again, Gordon Van Amburg On Thu Mar 24 10:08:24 2011, my.roges@gmail.com wrote: Show quoted text
> Thank you for CAS - It is just what I wanted for my MVC webApp, but I
think Show quoted text
> I have found a bug: > This, (with the cryptic errors from DBIx::Class) caught me for a whole
day. Show quoted text
> > $ cas-starter.pl --module=MyApp1 \ > --author=gordon \ > --email="vanamburg@cpan.org" \ > --verbose > > $ grep schema MyApp1/lib/MyApp1.pm > schema => '::DB', > > and it /should/ be > schema => 'MyApp1::DB', > > "There are no known bugs for this distribution." sounded so serious that I > believed it. > > Thanks again for your work. > > alexx > > p.s. If you want to exand your tutorial, a "Deployment guide for
$webserver Show quoted text
> and shared webservers" would have helped me, though that might be
something Show quoted text
> for CGI::Application to cover.
The issue regarding generation of the proper DBIC schema name into the application templates has been fixed. The method was to generate the corrected schema name into config/config.pl and let the main CGI::Application::Structured module get the name from the config file. So it is a bug fix and a configuration improvement. Note for upgraders: the default config file is now 'config/config.pl' instead of 'config-dev.pl', and again the dbic schema is now generated into this config rather than hard coded in the default base CAS module that is generate. Documentation/tutorial for using CAS has been updated as well in CAS 0.004. CAS 0.004 has been marked as a dependency for the updated CAS::Tools 0.008. Additional comments are available in the Changes file in the root of both distributions. Files are uploaded by not yet reflected in search.cpan.org web gui. Until then you can install new versions in the cpan shell as follows: Show quoted text
cpan> install V/VA/VANAMBURG/CGI-Application-Structured-Tools-0.008.tar.gz cpan> install V/VA/VANAMBURG/CGI-Application-Structured-0.004.tar.gz
Subject: Re: [rt.cpan.org #66858] cas-starter.pl
Date: Mon, 28 Mar 2011 19:00:23 +0200
To: bug-CGI-Application-Structured-Tools [...] rt.cpan.org
From: Alexx Roche <my.roges [...] gmail.com>
Show quoted text
> I am interested to know anything about how you found CAS
I hacked Dispatch.pm because I kept forgetting to set the $ENV{CONFIG_FILE}: cat lib/Notice/Dispatch.pm package Notice::Dispatch; =head1 NAME Template URL dispatcher for CGI::Application::Structured apps. =cut use base 'CGI::Application::Dispatch'; sub dispatch_args { my $CONFIG_FILE; $CONFIG_FILE = $ENV{CONFIG_FILE} ? $ENV{CONFIG_FILE} : 'config/ config-dev.pl'; return { prefix => Notice::C, args_to_new =>{PARAMS =>{cfg_file => $CONFIG_FILE}}, table => [ '' => {app => 'home'}, ':app' => {}, ':app/:rm/:id?' => {}, ':app/:rm/:id/:sid?' => {}, ':app/:rm/:id/:sid/:extra1?' => {}, ], default => 'home' }; } 1; # CAS has been really helpful for learning C:A TT and DBIC, (and improving my testing.) Having a deployment instruction would be a good idea. I could do Show quoted text
> something like that for installing as a cgi script on Apache 2 on Ubuntu > 10.04 LTS.
anything to stop the python/php/ruby migration *grin* Show quoted text
> If you wanted put something in, I could add it and list you > as a contributor too. >
The thing I found while trying to learn CAS (and its components) was too much documentation and not enough guides. Because of that I plan to take my own notebook and extend existing tutorials (the one for the CDs) by providing a drop in example that will display all CDs and their tracks on one page ( mostly showing how $rs->next(); can be used) and later an example showing how to delete a CD and all of its tracks from just a CD.cd_id (If I have time.) I was need to TT and DBIx::Class and C:A so I've spent a lot of time using Data::Dumper and tailing my mysql_query.log just to understand what they are doing under the hood. Not looking for any fame, so for now this is still all your work, (with anonymous suggestions... [0]) kindest regards alexx [0] yeah, on a public RT system *shrug*
all bugs were resolved. additional features requested, such as more examples, have not been included at this time, but the suggestion is appreciated and will be headed. i believe this bug was reopened due to reply from reporter of original bug in schema name generation.