Hi. I'm just returning to some programming after time
spent on $WORK, updated Maypole from 2.04 to 2.06, and
promptly ran into two problems.
First, in one of my databases, I have a column called
"description", which is not an SQL reserved word or a
reserved word in CDBI or anything. However, when I run
a Maypole app on this database, I die, and debug output
shows
caught view error: Can't fetch data as class method at /usr/local/lib/perl5/site_perl/5.8.5/Maypole/View/Base.pm line 40
Can't fetch data as class method at /usr/local/lib/perl5/site_perl/5.8.5/Maypole/View/Base.pm line 40
: at /usr/local/lib/perl5/site_perl/5.8.5/Maypole.pm line 128
etc. Base.pm line 40 is the line
$classmeta->{description} ||= $class->description;
, which didn't exist in 2.04. Is there a way to get around this
collision? I don't use $classmeta->{description}, and can't
change the underlying database (it's complicated and is used by
a variety of other apps, none of which I want to rewrite to
satisfy this new Maypole thing).
Second, in a different application--one that, unlike most of
my Maypole apps, is straightforward and doesn't override half
of Maypole--I am now getting untaint errors where I didn't
used to before. I don't want to untaint anything here, and I
don't have required columns, but in this situation when I
leave a field blank, I am getting "author () does not untaint
with default pattern" errors. Now, author is a display_column
but I don't require it for untainting anywhere.
I didn't see anything about FromCGI or Untaint in the Change
log, and I'm too lazy to compare the source, so if someone
could point it out to me, I'd be grateful. In most of my
other apps I override do_edit to use Data::FormValidator
instead, but I was trying to keep this simple, because I don't
actually have any validation needs.
Thanks.
Jesse Sheidlower
_______________________________________________
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