[Catalyst-commits] r8970 - in Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual: . Tutorial Tutorial/AdvancedCRUD

hkclark at dev.catalyst.perl.org hkclark at dev.catalyst.perl.org
Mon Dec 29 00:58:25 GMT 2008


Author: hkclark
Date: 2008-12-29 00:58:25 +0000 (Mon, 29 Dec 2008)
New Revision: 8970

Modified:
   Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial.pod
   Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod
   Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Debugging.pod
   Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Intro.pod
   Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Testing.pod
Log:
Misc updates to adjust Parts 8 & 9 and update their final tarball code

Modified: Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod
===================================================================
--- Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod	2008-12-29 00:56:22 UTC (rev 8969)
+++ Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod	2008-12-29 00:58:25 UTC (rev 8970)
@@ -83,6 +83,10 @@
     libregexp-copy-perl libregexp-common-perl libyaml-syck-perl libparams-util-perl \
     libcrypt-des-perl libcaptcha-recaptcha-perl libcrypt-cbc-perl \
     libreadonly-xs-perl libmoose-perl libregexp-assemble-perl
+    
+    ...
+    
+    sudo apt-get clean
 
 Then use the following command to install directly from CPAN the modules 
 that aren't available as Ubuntu/Debian packages via C<apt-get>:
@@ -91,6 +95,13 @@
     boolean Test::MockTime DateTime::Format::Natural HTML::FormFu \
     Catalyst::Component::InstancePerContext Catalyst::Controller::HTML::FormFu \
     HTML::FormFu::Model::DBIC
+    
+    ...
+    
+    Is it OK to try to connect to the Internet? [yes] yes
+    
+    ...
+    
 
 B<Note:> If you are following along with the Ubuntu LiveCD, you might 
 want to make sure you still have adequate free disk space in the root 

Modified: Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Debugging.pod
===================================================================
--- Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Debugging.pod	2008-12-29 00:56:22 UTC (rev 8969)
+++ Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Debugging.pod	2008-12-29 00:58:25 UTC (rev 8970)
@@ -139,12 +139,12 @@
 
     $ perl -d script/myapp_server.pl  
     
-    Loading DB routines from perl5db.pl version 1.27
+    Loading DB routines from perl5db.pl version 1.3
     Editor support available.
     
     Enter h or `h h' for help, or `man perldebug' for more help.
     
-    main::(script/myapp_server.pl:14):      my $debug         = 0;
+    main::(script/myapp_server.pl:16):      my $debug         = 0;
     
       DB<1> 
 
@@ -158,8 +158,8 @@
 C<MyApp::Controller::list> method, the console session running the
 development server will drop to the Perl debugger prompt:
 
-    MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:40):
-    40:         $c->stash->{books} = [$c->model('DB::Books')->all];
+    MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:48):
+    48:         $c->stash->{books} = [$c->model('DB::Books')->all];
     
       DB<1>
 
@@ -170,8 +170,8 @@
 
       DB<1> n
     SELECT me.id, me.authors, me.title, me.rating FROM books me:
-    MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:44):
-    44:         $c->stash->{template} = 'books/list.tt2';
+    MyApp::Controller::Books::list(/home/me/MyApp/script/../lib/MyApp/Controller/Books.pm:53):
+    53:         $c->stash->{template} = 'books/list.tt2';
     
       DB<1>
 
@@ -185,15 +185,11 @@
     ()
     (0+
     (bool
-    MODIFY_CODE_ATTRIBUTES
-    _attr_cache
-    _collapse_result
-    _construct_object
-    _count
-    _result_class_accessor
-    _result_source_accessor
-    all
-    carp
+    __source_handle_accessor
+    _add_alias
+    _build_unique_query
+    _calculate_score
+    _collapse_cond
     <lines removed for brevity>
     
       DB<2>

Modified: Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Intro.pod
===================================================================
--- Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Intro.pod	2008-12-29 00:56:22 UTC (rev 8969)
+++ Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Intro.pod	2008-12-29 00:58:25 UTC (rev 8970)
@@ -70,11 +70,10 @@
 You can obtain the code for all the tutorial examples from the
 catalyst subversion repository by issuing the command:
 
-    svn co http://dev.catalyst.perl.org/repos/Catalyst/tags/examples/Tutorial/MyApp/5.7/ CatalystTutorial
+    svn co http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/ CatalystTutorial
 
-This will download the current code for each tutorial chapter in the
-CatalystTutorial directory.  Each example application directory has
-the same name as the tutorial chapter.
+This will download the most recent tarball for each part of the 
+tutorial into the CatalystTutorial directory on your machine. 
 
 B<These reference implementations are provided so that when you follow
 the tutorial, you can use the code from the subversion repository to
@@ -178,12 +177,7 @@
 Subversion repository at
 L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/>.
 
-B<Note:> There are a variety of other introductory materials available
-through the Catalyst web site and at
-L<http://dev.catalyst.perl.org/wiki/UserIntroductions> and
-L<http://dev.catalyst.perl.org/>.
 
-
 =head1 VERSIONS AND CONVENTIONS USED IN THIS TUTORIAL
 
 This tutorial was built using the following resources. Please note that
@@ -450,20 +444,14 @@
 
 =head1 WHERE TO GET WORKING CODE
 
-Each part of the tutorial has complete code available in the main
-Catalyst Subversion repository (see the note at the beginning of each
-part for the appropriate svn command to use).  Additionally, the final
-code through Part 8 of the tutorial is available as a ready-to-run 
-tarball at
-L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/Final_Tarball/MyApp_Part8.tgz>.
-The final code for other parts of the tutorial are available at:
-L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/Final_Tarballs_Per_Part/>.
+Each part of the tutorial has complete code available as a tarball in 
+the main Catalyst Subversion repository (see the note at the beginning 
+of each part for the appropriate svn command to use).
 
+B<NOTE:> You can run the test cases for the final code through Part 8 
+with the following commands:
 
-B<NOTE:> You can run the test cases for the final code with the following 
-commands:
-
-    wget http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/Final_Tarball/MyApp_Part8.tgz
+    wget http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/MyApp_Part8.tgz
     tar zxvf MyApp.tgz
     cd MyApp
     CATALYST_DEBUG=0 prove --lib lib  t

Modified: Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Testing.pod
===================================================================
--- Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Testing.pod	2008-12-29 00:56:22 UTC (rev 8969)
+++ Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial/Testing.pod	2008-12-29 00:58:25 UTC (rev 8970)
@@ -77,15 +77,28 @@
 
     $ prove --lib lib t
 
-There will be a lot of output because we have the C<-Debug> flag enabled 
-in C<lib/MyApp.pm> (see the C<CATALYST_DEBUG=0> tip below for a quick 
-and easy way to reduce the clutter). Look for lines like this for 
-errors:
+There will be a lot of output because we have the C<-Debug> flag 
+enabled in C<lib/MyApp.pm> (see the C<CATALYST_DEBUG=0> tip below for 
+a quick and easy way to reduce the clutter).  Look for lines like this 
+for errors:
 
     #   Failed test 'Request should succeed'
     #   in t/controller_Books.t at line 8.
     # Looks like you failed 1 test of 3.
 
+B<Note:> Depending on the versions of various modules you have 
+installed, you might get some C<used only once> warnings -- you can 
+ignore these. If you are following along in Ubuntu 8.10, you can 
+prevent them by adding C<no warnings;> above line 49 in 
+C</usr/lib/perl5/Template/Base.pm> to match the following:
+
+    ...
+    {   no strict qw( refs );
+        no warnings;
+        $argnames = \@{"$class\::BASEARGS"} || [ ];
+    }
+    ...
+
 The redirection used by the Authentication plugins will cause several 
 failures in the default tests.  You can fix this by making the following
 changes:
@@ -212,7 +225,7 @@
         "Check we ARE logged in" ) for $ua1, $ua2;
     
     # 'Click' the 'Logout' link (see also 'text_regex' and 'url_regex' options)
-    $_->follow_link_ok({n => 1}, "Logout via first link on page") for $ua1, $ua2;
+    $_->follow_link_ok({n => 4}, "Logout via first link on page") for $ua1, $ua2;
     $_->title_is("Login", "Check for login title") for $ua1, $ua2;
     $_->content_contains("You need to log in to use this application",
         "Check we are NOT logged in") for $ua1, $ua2;

Modified: Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial.pod
===================================================================
--- Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial.pod	2008-12-29 00:56:22 UTC (rev 8969)
+++ Catalyst-Manual/5.70/trunk/lib/Catalyst/Manual/Tutorial.pod	2008-12-29 00:58:25 UTC (rev 8970)
@@ -58,8 +58,9 @@
 
 =back
 
-A tarball of the final application is available at
-L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/Final_Tarball/MyApp.tgz>.
+Tarballs for the final code for each part of the tutorial is available 
+at
+L<http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/>.
 
 
 =head1 Detailed Table of Contents




More information about the Catalyst-commits mailing list