Local formatted datetimes instead of ISO datetimes will scare users
less, http://www.class-dbi.com/cgi-bin/wiki/index.cgi?ClassDate
says it can be done using Class::Date, with something like:
Film->has_a( created_date => 'Class::Date' );
When I try it with the Maypole and the default templates it
gives me an error:
undef error - Can't locate auto/Class/Date/table.al in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.4
/usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .
/etc/apache-perl/ /etc/apache-perl/lib/perl) at (eval 69) line 44
The cause is in the macros template:
MACRO maybe_link_view(object) BLOCK;
IF object.table; # It's an object, i.e. a has-a
link(object.table, "view", object.id, object);
ELSE;
object;
END;
END;
How should I change the template to so that it doesn't try and load
Class::Date::table?
_______________________________________________
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