|
From: Jason R. <ja...@ar...> - 2000-12-18 22:22:32
|
When I try to initialize my table-map, I used this code:
25 my $r = Apache->request;
26 my $cfg = Apache::ModuleConfig->get($r,'Slash::Apache');
27 my $db = getCurrentDB();
28 $Slash::TableMap::table_map = $db->getTables();
29 $Slash::TableMap::dirty=0;
and I get:
Argument is not an Apache or Apache::Server object at
/usr/lib/perl5/site_perl/5.005/i586-linux/Slash/TableMap.pm line 26.
After playing with it and having no luck, I changed my code to read:
my $r = Apache->request;
if ($r){
my $db;
my $cfg = Apache::ModuleConfig->get($r,'Slash::Apache');
$db = getCurrentDB();
$Slash::TableMap::table_map = $db->getTables();
$Slash::TableMap::dirty=0;
}
so now I just get a bunch of stuff at startup that basically says that
the table named '' doesn't exist (since my table-map didn't load at
startup). It seems to work after that.
Jason Richey
Brian Aker wrote:
> Jason Richey wrote:
> > appreciated... Plenty of error messages fly by on startup because the
> > tablemap doesn't get initialized, but everything settles down and
> > works after that. I'll get a patch together against the last release
> > (I'm working with a pretty old version) and submit it for everyone's
> > input.
> What are the errors you are getting?
> -Brian
>
> _______________________________________________
> Slashcode-development mailing list
> Sla...@li...
> http://lists.sourceforge.net/mailman/listinfo/slashcode-development
--
"Jason C. Richey" <ja...@bo...>
|