[Catalyst-commits] r8214 - in
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp:
. lib lib/MyApp/Controller lib/MyApp/View lib/MyCRUD
lib/MyCRUD/Album lib/MyCRUD/Song root root/album root/song script
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Tue Aug 12 04:48:36 BST 2008
Author: karpet
Date: 2008-08-12 04:48:35 +0100 (Tue, 12 Aug 2008)
New Revision: 8214
Added:
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/list.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/view.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/edit.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/footer.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/header.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/list.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/page_head_maker.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/list.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/view.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/wrapper.tt
Modified:
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/README
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Album.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Root.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Song.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/View/TT.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Album/Form.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Form.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Main.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Song/Form.pm
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/mycrud.sql
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/edit.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/edit.tt
CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/script/myapp_server.pl
Log:
get view working for example app
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/README
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/README 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/README 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1 +1,7 @@
+Example app using CatalystX::CRUD::Controller::RHTMLO and CatalystX::CRUD::ModelAdapter::DBIC
+
+Create the db with:
+
+ % sqlite3 mycrud.db < mycrud.sql
+
Run script/myapp_server.pl to test the application.
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Album.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Album.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Album.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1,8 +1,12 @@
package MyApp::Controller::Album;
use strict;
use warnings;
-use base qw( CatalystX::CRUD::Controller::RHTMLO );
+use base qw( CatalystX::CRUD::REST CatalystX::CRUD::Controller::RHTMLO );
+use MyCRUD::Album::Form;
+use Class::C3;
+Class::C3::initialize();
+
__PACKAGE__->config(
form_class => 'MyCRUD::Album::Form',
init_form => 'init_with_album',
@@ -18,9 +22,4 @@
view_on_single_result => 1,
);
-sub default : Path {
- my ( $self, $c ) = @_;
- $c->response->redirect( $c->uri_for('list') );
-}
-
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Root.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Root.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Root.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -39,8 +39,25 @@
=cut
-sub end : ActionClass('RenderView') {}
+sub render_end : ActionClass('RenderView') {
+}
+sub end : Private {
+ my ( $self, $c ) = @_;
+ if ( @{ $c->error } ) {
+
+ $c->log->error($_) for @{ $c->error };
+
+ if ( grep {m/can't create new/} @{ $c->error } ) {
+ $c->error404;
+ $c->clear_errors;
+ return;
+ }
+
+ }
+ $c->forward('render_end');
+}
+
=head1 AUTHOR
Peter Karman
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Song.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Song.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/Controller/Song.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1,9 +1,12 @@
package MyApp::Controller::Song;
use strict;
use warnings;
-use base qw( CatalystX::CRUD::Controller::RHTMLO );
+use base qw( CatalystX::CRUD::REST CatalystX::CRUD::Controller::RHTMLO );
use MyCRUD::Song::Form;
+use Class::C3;
+Class::C3::initialize(); # must do this in each controller??
+
__PACKAGE__->config(
form_class => 'MyCRUD::Song::Form',
init_form => 'init_with_song',
@@ -19,9 +22,4 @@
view_on_single_result => 1,
);
-sub default : Path {
- my ( $self, $c ) = @_;
- $c->response->redirect( $c->uri_for('list') );
-}
-
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/View/TT.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/View/TT.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp/View/TT.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -3,4 +3,9 @@
use warnings;
use base qw( Catalyst::View::TT );
+__PACKAGE__->config(
+ TEMPLATE_EXTENSION => '.tt',
+ WRAPPER => 'wrapper.tt',
+);
+
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyApp.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -10,14 +10,14 @@
# -Debug: activates the debug mode for very useful log messages
# ConfigLoader: will load the configuration from a YAML file in the
# application's home directory
-# Static::Simple: will serve static files from the application's root
+# Static::Simple: will serve static files from the application's root
# directory
use Catalyst qw/-Debug ConfigLoader Static::Simple/;
our $VERSION = '0.01';
-# Configure the application.
+# Configure the application.
#
# Note that settings in MyApp.yml (or other external
# configuration file that you set up manually) take precedence
@@ -31,7 +31,13 @@
# Start the application
__PACKAGE__->setup;
+sub error404 {
+ my ($c) = @_;
+ $c->response->status(404);
+ $c->response->body("Sorry, resource not found");
+}
+
=head1 NAME
MyApp - Catalyst based application
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Album/Form.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Album/Form.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Album/Form.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -41,6 +41,7 @@
maxlength => 128,
},
);
+ $self->SUPER::build_form(@_);
}
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Form.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Form.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Form.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -3,4 +3,13 @@
use warnings;
use base qw( Rose::HTML::Form );
+sub build_form {
+ my $self = shift;
+
+ $self->add_fields( submit_button => 'submit' );
+
+ $self->SUPER::build_form(@_);
+
+}
+
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Main.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Main.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Main.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1,5 +1,5 @@
package MyCRUD::Main;
use base qw/DBIx::Class::Schema/;
-__PACKAGE__->load_classes(qw/Album Song/);
+__PACKAGE__->load_classes(qw/Album Song AlbumSong/);
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Song/Form.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Song/Form.pm 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/lib/MyCRUD/Song/Form.pm 2008-08-12 03:48:35 UTC (rev 8214)
@@ -48,6 +48,7 @@
label => 'Song Length'
}
);
+ $self->SUPER::build_form(@_);
}
1;
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/mycrud.sql
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/mycrud.sql 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/mycrud.sql 2008-08-12 03:48:35 UTC (rev 8214)
@@ -17,10 +17,12 @@
create table album_songs
(
+ id INTEGER primary key,
album_id int not null references albums(id),
song_id int not null references songs(id)
);
insert into albums (title, artist) values ('Blonde on Blonde', 'Bob Dylan');
insert into songs (title, length) values ('Visions of Johanna', '8:00');
+ insert into album_songs (album_id, song_id) values (1, 1);
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/edit.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/edit.tt 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/edit.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1 +1 @@
-[% form.xhtml_table %]
+[% PROCESS edit.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/list.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/list.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/list.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1 @@
+[% PROCESS list.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/view.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/view.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/album/view.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1 @@
+[% PROCESS edit.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/edit.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/edit.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/edit.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,30 @@
+[%
+ # generic RHTMLO form maker
+ DEFAULT oid = c.controller.make_primary_key_string( object ) || '0';
+ CALL form.action( c.uri_for(oid, 'save') );
+ CALL form.method('post');
+
+ # specific to this example app
+ SET related_method = object.isa('MyCRUD::Main::Album')
+ ? 'songs' : 'albums';
+ SET related_uri = object.isa('MyCRUD::Main::Album')
+ ? c.uri_for('/song') : c.uri_for('/album');
+%]
+
+<div id="form">
+
+ [% form.xhtml_table %]
+
+</div>
+
+[% IF oid %]
+<div id="related">
+ <h2>Related records</h2>
+ [% PROCESS list.tt
+ fields = ['title', 'artist']
+ results = object.$related_method
+ base_uri = related_uri
+ %]
+
+</div>
+[% END %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/footer.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/footer.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/footer.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,2 @@
+ </body>
+</html>
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/header.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/header.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/header.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+
+ <title>[% c.config.name %]</title>
+
+ <link rel="shortcut icon"
+ href="[% c.uri_for('/') %]favicon.ico" type="image/x-icon" />
+
+ [% PROCESS page_head_maker.tt %]
+
+ <style type="text/css">
+ body {
+ font-family: helvetica;
+ }
+ .alt {
+ background-color: #eee;
+ }
+ tr {
+ padding: 4px;
+ }
+ td {
+ padding: 6px;
+ }
+ </style>
+
+ </head>
+ <body >
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/list.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/list.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/list.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,38 @@
+[%
+ # generic search result template
+ IF (! fields.defined );
+ SET fields = [];
+ FOREACH f = c.controller.field_names(c);
+ NEXT IF form.field(f).is_button;
+ fields.push(f);
+ END;
+ END;
+
+ DEFAULT results = results.results;
+ DEFAULT base_uri = c.uri_for('');
+
+
+%]
+<div id="list">
+
+ <table>
+ <tr>
+ [% FOREACH field = fields %]
+ <th>[% field | ucfirst %]</th>
+ [% END %]
+ </tr>
+ [% SET count = 0;
+ FOREACH r = results;
+ count = count + 1;
+ %]
+ <tr [% IF (count % 2) %]class="alt"[% END %]>
+ [% FOREACH field = fields %]
+ <td><a
+ href="[% base_uri %]/[% c.controller.make_primary_key_string(r) %]"
+ >[% r.$field %]</a></td>
+ [% END %]
+ </tr>
+ [% END %]
+ </table>
+
+</div>
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/page_head_maker.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/page_head_maker.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/page_head_maker.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,10 @@
+ [% FOREACH css = page.css.unique %]
+ <link rel="stylesheet" type="text/css" media="all"
+ href="[% static_url %]/css/[% css %].css" />
+ [% END %]
+
+ [% FOREACH js = page.js.unique %]
+ <script type="text/javascript"
+ src="[% static_url %]/js/[% js %].js"></script>
+ [% END %]
+
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/edit.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/edit.tt 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/edit.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -1 +1 @@
-[% form.xhtml_table %]
+[% PROCESS edit.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/list.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/list.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/list.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1 @@
+[% PROCESS list.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/view.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/view.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/song/view.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1 @@
+[% PROCESS edit.tt %]
Added: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/wrapper.tt
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/wrapper.tt (rev 0)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/root/wrapper.tt 2008-08-12 03:48:35 UTC (rev 8214)
@@ -0,0 +1,9 @@
+[% UNLESS no_wrapper;
+ PROCESS header.tt;
+ content;
+ PROCESS footer.tt;
+ ELSE;
+ content;
+ END;
+%]
+
Modified: CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/script/myapp_server.pl
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/script/myapp_server.pl 2008-08-11 21:58:55 UTC (rev 8213)
+++ CatalystX-CRUD/CatalystX-CRUD-ModelAdapter-DBIC/trunk/t/example/MyApp/script/myapp_server.pl 2008-08-12 03:48:35 UTC (rev 8214)
@@ -12,6 +12,7 @@
use Pod::Usage;
use FindBin;
use lib "$FindBin::Bin/../lib";
+use lib "$FindBin::Bin/../../../../lib";
my $debug = 0;
my $fork = 0;
More information about the Catalyst-commits
mailing list