[Maypole] Why require fails?

From: veljko at spymac.com
Date: Mon Aug 09 2004 - 19:04:20 BST


Hi, all

Can someone please explain me why require on the bottom fails and
warn returns correct name of the table (image)?

Question comes after not being able to use authentication, since
UserSessionCookie.pm has :
$user_class->require || die "Couldn't load user class $user_class";
which fails and $user_class does exist.

Regards,
Veljko

package Vds;
use base qw(Apache::MVC Maypole::Authentication::UserSessionCookie);
use Class::DBI::Loader::Relationship;

Vds->setup("dbi:mysql:vds", vdsuser);
Vds->config->{uri_base} = 'http://metatest/vds/';

Vds->config->{auth}{cookie_name} = "vds_login123";
Vds->config->{rows_per_page} = 10;

Vds->config->{display_tables} = [qw[doc image]];
Vds::Image->untaint_columns( printable => [qw/name path/] );
Vds::Doc->untaint_columns(
    printable => [qw/name title version revision/],
    date =>[ qw/date/]
);

Vds->config->{loader}->relationship($_) for (
    "a doc has images"
);

Vds::Image->require || warn $UNIVERSAL::require::ERROR;
warn Vds::Image->table();

---- Introducing Spymac MailPro: http://www.spymac.com/mailpro/

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT