On 9/24/05, Paulo Silva <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm starting developing with maypole and I'm having a strange issue with
> PostgreSQL.
>
> I created a site to serve as a simple CD database:
>
> #############################################
> package CD;
> use strict;
> use warnings;
> use base 'Apache::MVC';
> use Class::DBI::Loader::Relationship;
>
> CD->setup('dbi:Pg:dbname=xxxx', 'xxxx', 'xxxx');
> CD->config->{uri_base} = "http://localhost/perl/";;
> CD->config->{template_root} = '/var/maypole/';
>
> CD->config->{loader}->relationship($_) for (
>         'a album as a artist',
> );
>
> 1;
> #############################################
>
> Although the site renders correctly and I noticed that all the values
> inserted/removed/altered aren't committed to the database.
>
> Is there any known issue with PostgreSQL and Maypole or am I doing
> something wrong?
>
> I'm using Debian with PostgreSQL 7.4, Apache 1.3 and Maypole 2.10.


See the Maypole FAQ at http://maypole.perl.org/?FAQ - How do I get
beerdb working with Postgres?

Also, have a look at Maypole::Application. Instead of saying this:

> use base 'Apache::MVC';
> use Class::DBI::Loader::Relationship;

you'd say

use Maypole::Application;

As your app develops, working via Maypole::Application will help keep
things simpler.

d.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to