[Maypole] Retrieve problems if :Exported sub used
Jesse Sheidlower
jester@panix.com
Tue, 20 Jul 2004 22:20:21 -0400
Hey. I finally solved my problem with ::Plain, and now have been
struck with another weird thing.
In one of my packages, I have a custom "list" method that
performs a special search via set_sql. With this method
I get this error:
[error] Can't retrieve unless primary columns are defined at
/usr/local/lib/perl5/site_perl/5.8.4/Maypole/Model/Base.pm
line 16
I get this even if I don't use the "list" method; for example,
if I go to http://localhost/MyDB/view/4, with no "view" method
defined, I still get the error.
After some trial and error, I discovered that I get the error
if _any_ :Exported method appears. I wrote a "sub randomsub {}"
routine which works fine (i.e. it doesn't cause any other error),
but "sub randomsub :Exported {}" returns the same error (again,
for any other method).
The only other Maypole discussion of this error was in relation to
multiple-column primary keys, which I'm not using. The tables in
question all have one-column integer primary keys, which are of
course detected fine when there's no :Exported method in a package.
Anyone seen this before, or have any thoughts?
Thanks.
Jesse Sheidlower