diff --git a/lib/Nempire.pm b/lib/Nempire.pm index 44c9036..ecc214c 100644 --- a/lib/Nempire.pm +++ b/lib/Nempire.pm @@ -35,6 +35,7 @@ sub startup { $r->get('/photos')->to('photos#index'); $r->get('/photos/:id')->over('photoset')->to('photos#show_set'); + $r->get('/photos/:id')->to('photos#show'); } 1; diff --git a/lib/Nempire/Photos.pm b/lib/Nempire/Photos.pm index b0a09d3..f4d51c6 100644 --- a/lib/Nempire/Photos.pm +++ b/lib/Nempire/Photos.pm @@ -13,6 +13,19 @@ sub index { $self->render(template => 'photos/index'); } +sub show { + my $self = shift; + my $id = $self->stash->{id}; + + my $photo = $self->db->resultset('Photo')->find($id) + or $self->redirect_to("/photos") + and return; + + $self->stash(photo => $photo); + + $self->render(template => 'photos/show'); +} + sub show_set { my $self = shift; my $id = $self->stash->{id}; @@ -25,4 +38,5 @@ sub show_set { $self->render(template => 'photos/show_set'); } + 1; diff --git a/lib/Nempire/Schema/Result/Photo.pm b/lib/Nempire/Schema/Result/Photo.pm index 5226e56..00156f2 100644 --- a/lib/Nempire/Schema/Result/Photo.pm +++ b/lib/Nempire/Schema/Result/Photo.pm @@ -217,6 +217,28 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-12 21:00:40 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tE5yRrWVQRn/KUo9euKbRA +=head2 set + +Type: belongs_to + +Related object: L + +Alias for L + +=cut + +__PACKAGE__->belongs_to( + "set", + "Nempire::Schema::Result::Photoset", + { id => "photoset" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + sub location { my $self = shift; @@ -225,12 +247,53 @@ sub location { $location .= $self->region if $self->region; } +sub next { + my $self = shift; + + return if !$self->idx; + + return $self->result_source->resultset->find( + { photoset => $self->set->id, + idx => $self->idx + 1 + } + ); +} + +sub previous { + my $self = shift; + + return if !$self->idx; + + return $self->result_source->resultset->find( + { photoset => $self->set->id, + idx => $self->idx - 1 + } + ); +} + +sub time_since { + my $self = shift; + return Time::Duration::ago(time - $self->taken->epoch) if $self->taken; +} + =head1 METHODS =head2 location City, State +=head2 previous + +Previous photo in set according to idx + +=head2 next + +Next photo in set according to idx + +=head2 time_since + +Time since photo was taken + =cut 1; diff --git a/log/development.log b/log/development.log index 10148a6..10a0bf3 100644 --- a/log/development.log +++ b/log/development.log @@ -1641,3 +1641,736 @@ Sat Apr 2 23:49:17 2011 debug Mojolicious:22 [22372]: Your secret passphrase ne Sat Apr 2 23:49:17 2011 debug Mojolicious:22 [22372]: Your secret passphrase needs to be changed!!! Sat Apr 2 23:49:18 2011 debug Mojolicious:22 [22372]: Your secret passphrase needs to be changed!!! Sat Apr 2 23:49:18 2011 debug Mojolicious:22 [22372]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:54:05 2011 debug Mojolicious:22 [22372]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:54:05 2011 debug Mojolicious::Plugin::RequestTimer:24 [22372]: GET /photos/chico_downtime (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:54:05 2011 debug Mojolicious::Routes:458 [22372]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:54:05 2011 error Mojolicious::Controller:318 [22372]: Can't locate object method "photo_count" via package "Nempire::Schema::Result::Photoset" at template line 21, near " ". +16:
  • +17: <%= $set->date->month_name %>, <%= $set->date->year %>
  • +18:
  • +19: <%= $set->time_since %>
  • +20:
  • +21: <%= $set->photo_count %> Photos
  • +22: +23: +24:
    +25: % foreach my $photo ( $set->photos->all ) { +26: show_set. +Sat Apr 2 23:54:52 2011 error Mojolicious::Controller:318 [24224]: Can't locate object method "photo_count" via package "Nempire::Schema::Result::Photoset" at template line 21, near " ". +16:
  • +17: <%= $set->date->month_name %>, <%= $set->date->year %>
  • +18:
  • +19: <%= $set->time_since %>
  • +20:
  • +21: <%= $set->photo_count %> Photos
  • +22: +23:
    +24:
    +25: % foreach my $photo ( $set->photos->all ) { +26: show_set. +Sat Apr 2 23:55:52 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.037298s, 26.811/s). +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:55:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:28 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:28 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/chico_downtime (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:56:28 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:56:28 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.038434s, 26.019/s). +Sat Apr 2 23:56:28 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:28 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:28 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:28 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:29 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:29 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:54 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:54 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/chico_downtime (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:56:54 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:56:54 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.036470s, 27.420/s). +Sat Apr 2 23:56:54 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:54 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:54 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:54 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:55 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:55 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:55 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:55 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/houston_correlation (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:56:55 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:56:55 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.035626s, 28.069/s). +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:56 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/chico_downtime (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:56:57 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:56:57 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.035294s, 28.333/s). +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:57 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/return_to_stinson_beach (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:56:58 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:56:58 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.035350s, 28.289/s). +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:56:58 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/slo_day (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:57:00 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:57:00 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.035540s, 28.137/s). +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:57:00 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/slo_day (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:58:35 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sat Apr 2 23:58:35 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.035632s, 28.065/s). +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:36 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/4676866217 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sat Apr 2 23:58:43 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "not_found.development.html.ep" not found. +Sat Apr 2 23:58:43 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "not_found.html.ep" not found. +Sat Apr 2 23:58:43 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 404 Not Found (0.013475s, 74.212/s). +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:43 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sat Apr 2 23:58:44 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:52 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/slo_day (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:22:52 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sun Apr 3 00:22:52 2011 error Mojolicious::Routes:473 [24224]: Global symbol "$photo" requires explicit package name at script/../lib/Nempire/Photos.pm line 24. +Compilation failed in require at (eval 2340) line 2. + +Sun Apr 3 00:22:52 2011 error Mojolicious::Controller:318 [24224]: Global symbol "$photo" requires explicit package name at script/../lib/Nempire/Photos.pm line 24. +Compilation failed in require at (eval 2340) line 2. + +Sun Apr 3 00:22:52 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:22:52 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.html.ep" not found. +Sun Apr 3 00:22:52 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 500 Internal Server Error (0.096306s, 10.384/s). +Sun Apr 3 00:22:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:52 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:22:53 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:05 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:05 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/slo_day (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:23:05 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show_set. +Sun Apr 3 00:23:05 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 200 OK (0.051959s, 19.246/s). +Sun Apr 3 00:23:05 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:05 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:06 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:06 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:06 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:06 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:11 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:11 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:23:11 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:23:11 2011 error Mojolicious::Controller:318 [24224]: Unterminated <> operator at (eval 2532) line 32. + +Sun Apr 3 00:23:11 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:23:11 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.html.ep" not found. +Sun Apr 3 00:23:11 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 500 Internal Server Error (0.106068s, 9.428/s). +Sun Apr 3 00:23:11 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:11 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:11 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:12 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:12 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:35 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:35 2011 debug Mojolicious::Plugin::RequestTimer:24 [24224]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:23:35 2011 debug Mojolicious::Routes:458 [24224]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:23:36 2011 error Mojolicious::Controller:318 [24224]: Unterminated <> operator at (eval 2620) line 32. + +Sun Apr 3 00:23:36 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:23:36 2011 debug Mojolicious::Plugin::EplRenderer:61 [24224]: Template "exception.html.ep" not found. +Sun Apr 3 00:23:36 2011 debug Mojolicious::Plugin::RequestTimer:48 [24224]: 500 Internal Server Error (0.199699s, 5.008/s). +Sun Apr 3 00:23:36 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:36 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:36 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:37 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:37 2011 debug Mojolicious:22 [24224]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:43 2011 info Mojo::Server::Daemon:319 [24465]: Server listening (http://*:3000) +Sun Apr 3 00:23:44 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:44 2011 debug Mojolicious::Plugin::RequestTimer:24 [24465]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:23:44 2011 debug Mojolicious::Routes:458 [24465]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:23:45 2011 error Mojolicious::Controller:318 [24465]: Unterminated <> operator at (eval 369) line 32. + +Sun Apr 3 00:23:45 2011 debug Mojolicious::Plugin::EplRenderer:61 [24465]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:23:45 2011 debug Mojolicious::Plugin::EplRenderer:61 [24465]: Template "exception.html.ep" not found. +Sun Apr 3 00:23:45 2011 debug Mojolicious::Plugin::RequestTimer:48 [24465]: 500 Internal Server Error (0.405881s, 2.464/s). +Sun Apr 3 00:23:45 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:45 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:45 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:46 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:23:46 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:07 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:07 2011 debug Mojolicious::Plugin::RequestTimer:24 [24465]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:24:07 2011 debug Mojolicious::Routes:458 [24465]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:24:07 2011 error Mojolicious::Controller:318 [24465]: Unterminated <> operator at (eval 457) line 32. + +Sun Apr 3 00:24:07 2011 debug Mojolicious::Plugin::EplRenderer:61 [24465]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:24:07 2011 debug Mojolicious::Plugin::EplRenderer:61 [24465]: Template "exception.html.ep" not found. +Sun Apr 3 00:24:07 2011 debug Mojolicious::Plugin::RequestTimer:48 [24465]: 500 Internal Server Error (0.191904s, 5.211/s). +Sun Apr 3 00:24:08 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:08 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:08 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:08 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:08 2011 debug Mojolicious:22 [24465]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:12 2011 info Mojo::Server::Daemon:319 [24474]: Server listening (http://*:3000) +Sun Apr 3 00:24:13 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:13 2011 debug Mojolicious::Plugin::RequestTimer:24 [24474]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:24:13 2011 debug Mojolicious::Routes:458 [24474]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:24:13 2011 error Mojolicious::Controller:318 [24474]: Unterminated <> operator at (eval 369) line 32. + +Sun Apr 3 00:24:13 2011 debug Mojolicious::Plugin::EplRenderer:61 [24474]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:24:13 2011 debug Mojolicious::Plugin::EplRenderer:61 [24474]: Template "exception.html.ep" not found. +Sun Apr 3 00:24:13 2011 debug Mojolicious::Plugin::RequestTimer:48 [24474]: 500 Internal Server Error (0.404152s, 2.474/s). +Sun Apr 3 00:24:14 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:14 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:14 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:14 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:14 2011 debug Mojolicious:22 [24474]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:44 2011 info Mojo::Server::Daemon:319 [24484]: Server listening (http://*:3000) +Sun Apr 3 00:24:45 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:45 2011 debug Mojolicious::Plugin::RequestTimer:24 [24484]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:24:45 2011 debug Mojolicious::Routes:458 [24484]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:24:45 2011 error Mojolicious::Controller:318 [24484]: Unterminated <> operator at (eval 369) line 33. + +Sun Apr 3 00:24:45 2011 debug Mojolicious::Plugin::EplRenderer:61 [24484]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:24:45 2011 debug Mojolicious::Plugin::EplRenderer:61 [24484]: Template "exception.html.ep" not found. +Sun Apr 3 00:24:45 2011 debug Mojolicious::Plugin::RequestTimer:48 [24484]: 500 Internal Server Error (0.384332s, 2.602/s). +Sun Apr 3 00:24:45 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:45 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:45 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:46 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:24:46 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:25:07 2011 debug Mojolicious:22 [24484]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:25:07 2011 debug Mojolicious::Plugin::RequestTimer:24 [24484]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:25:07 2011 debug Mojolicious::Routes:458 [24484]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:25:08 2011 error Mojolicious::Controller:318 [24484]: syntax error at template line 4, near "% my $nav = begin". +$_M " +syntax error at template line 24, near " %= $photo->set->title". +syntax error at template line 35, near "
  • ". +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: % my $nav = begin +6:
  • ". +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: % my $nav = begin +6:
  • ". +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: +6:
    +7: +8:

    show. +Sun Apr 3 00:25:44 2011 error Mojolicious::Controller:318 [24502]: syntax error at template line 4, near "". +$_M " +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: +6:
    +7: +8:

    show. +Sun Apr 3 00:25:49 2011 error Mojolicious::Controller:318 [24511]: syntax error at template line 4, near "". +$_M " +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: +6:
    +7: +8:

    show. +Sun Apr 3 00:25:56 2011 error Mojolicious::Controller:318 [24511]: syntax error at template line 4, near "". +$_M " +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title +4: +5: +6:
    +7: +8:

    show. +Sun Apr 3 00:26:05 2011 error Mojolicious::Controller:318 [24511]: Can't locate object method "set" via package "Nempire::Schema::Result::Photo" at template line 2, near "". +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: +4: +5:
    +6: +7:

    show. +Sun Apr 3 00:26:16 2011 error Mojolicious::Controller:318 [24511]: Can't locate object method "set" via package "Nempire::Schema::Result::Photo" at template line 2, near "% title $title;". +1: % layout 'default'; +2: % my $title = $photo->set->title . '-' . $photo->idx . ' of ' . $photo->set->photos->count; +3: % title $title; +4: +5: +6:
    +7: + +Sun Apr 3 00:26:16 2011 debug Mojolicious::Plugin::EplRenderer:61 [24511]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:26:16 2011 debug Mojolicious::Plugin::EplRenderer:61 [24511]: Template "exception.html.ep" not found. +Sun Apr 3 00:26:16 2011 debug Mojolicious::Plugin::RequestTimer:48 [24511]: 500 Internal Server Error (0.143002s, 6.993/s). +Sun Apr 3 00:26:16 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:26:16 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:26:16 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:26:17 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:26:17 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:06 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:06 2011 debug Mojolicious::Plugin::RequestTimer:24 [24511]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:29:06 2011 debug Mojolicious::Routes:458 [24511]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:29:06 2011 error Mojolicious::Controller:318 [24511]: Nempire::Schema::Result::Photo::set(): No such relationship 'set' on Photo at (eval 723) line 2 +62: } +63: +64: my $self = { msg => $msg }; +65: bless $self => $class; +66: +67: die $self; +68: } +69: +70: =head2 rethrow +71: +72: This method provides some syntactic sugar in order to + +Sun Apr 3 00:29:06 2011 debug Mojolicious::Plugin::EplRenderer:61 [24511]: Template "exception.development.html.ep" not found. +Sun Apr 3 00:29:06 2011 debug Mojolicious::Plugin::EplRenderer:61 [24511]: Template "exception.html.ep" not found. +Sun Apr 3 00:29:06 2011 debug Mojolicious::Plugin::RequestTimer:48 [24511]: 500 Internal Server Error (0.282030s, 3.546/s). +Sun Apr 3 00:29:06 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:07 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:07 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:07 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:07 2011 debug Mojolicious:22 [24511]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:14 2011 info Mojo::Server::Daemon:319 [24570]: Server listening (http://*:3000) +Sun Apr 3 00:29:15 2011 debug Mojolicious:22 [24570]: Your secret passphrase needs to be changed!!! +Sun Apr 3 00:29:15 2011 debug Mojolicious::Plugin::RequestTimer:24 [24570]: GET /photos/4677493878 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0). +Sun Apr 3 00:29:15 2011 debug Mojolicious::Routes:458 [24570]: Dispatching Nempire::Photos->show. +Sun Apr 3 00:29:15 2011 error Mojolicious::Controller:318 [24570]: Can't locate object method "previous" via package "Nempire::Schema::Result::Photo" at template line 17, near " +14:

    +15: +16:

  • % foreach my $photo ( $set->photos->all ) { -