On 25/12/05, Cadaver <[EMAIL PROTECTED]> wrote:
> What's wrong with my basic maypole application if I got next errors:
> "We don't have that table (frontpage).
> Available tables are: category,manufacturer,product,subcategory,user
> at /usr/lib/perl5/vendor_perl/5.8.6/Maypole.
> pm line 144.

This would mean you don't have a frontpage template in the template
search path. frontpage is the template used for the frontpage when, no
table and method are provided. The beerdb example included in the
distribution should include one, as should the templates directory of
the distribution - if not you can find the file in the maypole SVN.

> We don't have that table (maypole.css).
> Available tables are: category,manufacturer,product,subcategory,user
> at /usr/lib/perl5/vendor_perl/5.8.6/Maypole.
> pm line 144.",

As with frontpage, this means maypole is looking for a template and
cannot find it..
given an url of /maypole.css first it checks a template of that name,
then for a table called maypole.css - obviously you don't have a table
of that name, so it complains about it a bit and gives up looking for
maypole.css.

You should be able to fix this error by putting maypole.css in the
root of your template directory. As with the frontpage template you
can check for it in the distro or dig it out of SVN.

> and date does not iserted into tables correctly ( some variables have NULL 
> value )?

This probably occurs if you are using untaint as printable for the
date fields and they are not being inserted correctly into the
database, I'd reccomend that you edit the date field html to be proper
date dropdowns and write your own do_edit method to munge the date
into a valid date.

I habitually call my own edit method do_update and use it to wrap the
default maypole do_edit method, munging and updating anything special
in the method but leaving the create/find/editing work to the do_edit
method.


Hope that helps and merry christmas,

A.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to