Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
creating relation between tables?

Posted by revtopo (revtopo), 17 July 2007
hi all there,

i have been writing a code in perl to create a database webinterface (using maypole). every thing is fine other than that i get numerous errors while trying to create relation between the tables. every tme a different error

the error am getting is :

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


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

though i could make the webpage displayed i think there is some problem in it )

the code am using is:


package TOPO;
use warnings;
use Carp;
use base 'Apache::MVC';
use Class:BI::Loader::Relationship;
use Data:umper;
use Maypole::Constants;
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->{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 abstract");
1;

could any one find were the error and help me out of this pool please

thnks in advance






Posted by admin (Graham Ellis), 17 July 2007
I think this is the same question you've asked in another thread - perhaps you posted twice by mistake?   I'm going to lock this thread and suggest that anyone who has a suggestion answer in the Perl forum - that way we won't be doubling the work and multiplying any confusion with two sets of answers



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho