2008/11/25 Jacinta Richardson <[EMAIL PROTECTED]>:
> Aaron Trevena wrote:
>
>> frontpage template is in lib/Maypole/templates/factory - copy any
>> missing templates from there.
>>
>> Don't use templates from 2.10, as they have bugs in that have been
>> fixed in recent versions.
>
> Hmm.  I thought I looked pretty thoroughly for all the templates, thanks for
> pointing out my mistake!
>
> I've pointed my (working) code at the new templates without any other changes
> and get an error immediately:
>
>
> undef error - Can't locate object method "search_columns" via package
> "BeerDB::Pub" at /usr/share/perl5/Template/Plugin/Class.pm line 36.
>
>
> I think I might stick with the old templates. :(

it would be much quicker to just define a search_columns method in
BeerDB::Pub - all it needs to return is an array of field_names - 1
line of code - then you get all the other fixes to templates since
2.10 (which is a lot)

> Already done!  Well except for the above problem, but I'll wait to see if you
> have a magic answer for that too.  ;)

No magic answer - it's a bug, workaround is to specify that method -
the model class should provide a default list of search_columns (based
on display_columns, or failing that columns that aren't primary key)

I'll try and fix that today and commit to SVN but there won't be a new
stable release with these fixes for a couple of weeks - hopefully I'll
have some time to hack on it at the LPW this weekend.

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to