+ # We authenticate every request, needed for proper session management
+ my $status = $r->call_authenticate;
+ if ($r->debug and $status != OK and $status != DECLINED) {
+ $r->view_object->error($r,
+ "Got unexpected status $status from calling authentication");
+ }
+ return $status unless $status == OK;
+ # We run additional_data for every request
+ $r->additional_data;
+ if ($applicable == OK) {
+ $r->model_class->process($r);
+ }
+ if (!$r->{output}) { # You might want to do it yourself
+ return $r->view_object->process($r);
+ } else { return OK; }