Hi there,

 

I am not sure whether this is correct place to ask the questions. If
this not the right place to ask please direct me to right place to ask
the doubts.

Thanks.

 

I have been trying to create a web interface using maypole.

 

I can get the tables displayed on the web. But I  can't get the relation
between the tables.

 

The error am getting is similar to the one in this link. But that
doesn't help me to get off the error.  

http://lists.netthink.co.uk/pipermail/maypole/2005-January/001488.html

 

my code:

 

<code>

 

package TOPO;

use warnings;

use Carp;

use base 'Apache::MVC';

use Class::DBI::Loader::Relationship;

use Data::Dumper;

use Maypole::Application;

my $title = "TOPO database. Very rudimentary interface as a starting
point for development.";

 

TOPO->setup("dbi:mysql:topo_interpro2","nobody","",{AutoCommit => 1,
PrintError => 1});

TOPO->config->{uri_base} = "http://atidb.org/topo/";;

TOPO->config->{rows_per_page} = 20;

TOPO->config->{template_root} = "/jic-atidb/w3/topo/";

TOPO->config->{application_name} = $title;

TOPO->config->{display_tables} =[qw[DNA ENTRY ABSTRACT ANNOTATION
REFDATABASE EXAMPLE PARENT PUBLICATIONID PUBLICATION SUPERMATCH
XREFERENCE PROTEIN TAXONOMY]];

 

TOPO->config->{loader}->relationship($_) for

("entry has annotation");

 

 

1;

 

The exact error with this is:

 

 

Can't call method "_table2class" on an undefined value at
/home/jic-atidb/perl/lib/site_perl/5.8.0/Maypole/Model/CDBI.pm line 467,
<DATA> line 1.\n, referer: http://www.atidb.org/topo.

 

What silly thing am missing in it?

 

Thanks,

Reva,

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to