Re: [Maypole] Maypole::Manual::Request typo?

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Wed Jan 26 2005 - 12:59:07 GMT


Toby Corkindale wrote:
> perldoc Maypole::Manual::Request:
> [...]
> Put this in your driver class:
>
> sub error {
> my ($r, $message) = @_;
> $r->{template} = "error";
> $r->{template_args}{error} = $message;
> return OK;
> }
> [...]
>
> Shouldn't that be "return Maypole::Constants::OK;" ?

Probably, thanks. Though it seems more like a bug to me. IMHO, it would
be better if Maypole made these constants available automatically
everywhere they're likely to be used, because failing to declare them is
very error-prone. If the 'bug' doesn't get fixed, I'll change the doc.

Cheers, Dave

_______________________________________________
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:57 GMT