Re: [Maypole] CGI::Maypole and logins

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Mon Dec 20 2004 - 14:19:08 GMT


Gordon Haverland wrote:
> I am new to Maypole, getting close to 1 week now. I managed to get
> Maypole to display a frontpage with links to list, etc. tables on an
> application I want to set up.

Hello Gordon,
Glad to see you here.

> But ever since I started adding the stuff to try and get
> Authorization/ Authentication working with cookies, I can't get any
> usable stuff either to the browser or to the logs.

Yes, the old stuff 'needs some adjustment'! There's a new release of
Maypole coming out soon that should fix this, so the easiest thing to do
might be to wait for it if your timetable permits that. Or you could
download a CVS release if that's more your style.

> If anyone had a pointer to a document which works with the current
> version of Maypole about CGI and Cookies/Authentication, I would love
> to read it.

Request.pod is not that far out and a revised version will be issued
with the new Maypole.

> One error I think would be nice to add to the documentation, is
> "Unknown error". I got this from "require Maypole::Constants"
> instead of "use Maypole::Constants".

It occurred to me recently that it ought to be possible for the various
Maypole base classes to be arranged in such a way that it isn't
necessary for user applications to have to explicitly 'use
Maypole::Constants'. Does anybody know if that will be true in the new
release?

> CGI::Debug is something new in CPAN, which looks like it will help a
> little in debugging Maypole (or CGI in general). But I am finding it
> hard to find out where/why things die. It's worse than doing print
> statements in FORTRAN IV back in the late 70's.

Do you mean CGI-Debug-1.0 - 28 Dec 2000 - Jonas Liljegren ?
It looks like that uses CGI.pm whereas Maypole uses CGI::Simple.pm so it
may not be straightforward to use.

I would recommend using Maypole::CLI; I drive it with a test script.
<lists.netthink.co.uk/pipermail/ maypole/2004-December/001118.html>
The error handling is also being improved in the new release, I believe.

HTH, 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