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
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho