A conversation that I recently had with mst on catalyst pertaining to
Rose::DB submitted for archival purposes only.

A good keyword for this problem would be Module::Pluggable::Fast, as
many of the complains centered around that, and misc other things be
overwritten.

15:52 < ECarroll> alright i got rdbo working!
15:52 < ECarroll> horrah, horrah.
15:53 <@mst> joy
15:53 <@mst> nicely done, mind
15:53 <@mst> what was the problem?
15:53 < ECarroll> I have to make the packages names relative to the
MyApp/lib, I though, (strongly) that adding MyApp/lib/MyApp/M would
allow
                  to make them relative to that location, but that
wasn't so
15:54 < ECarroll> I'm not sure why adding that to -I didn't work, but at
least i now know what the prob was
15:54 < ECarroll> s/though/thought/
15:54 <@mst> ah, I think I see
15:55 <@mst> so you loaded the same files twice but from two different
"apparent" locations as far as perl was concerned
15:55 < ECarroll> Thats the thing, no at least thats not what should
have happened, I had this in my apache2.conf PerlSwitches
                  -I/var/www/Dealermade/lib/Dealermade/M
-I/var/www/Dealermade/lib
15:56 <@mst> oh right
15:56 <@mst> then it's definitely what happened
15:56 <@mst> Catalyst will have auto-loaded the Dealermade/M/ copies
15:56 <@mst> after you'd already loaded the classes themselves
15:56 < ECarroll> Then i tried to include, in
my /var/www/Dealermade/lib/Dealermade.pm, the line 'use Default', which
i expected it to to pull
                  from the -I/var/www/Dealermade/lib/Dealermade/M, the
file './Default.pm', and then include the other rdbos that were
                  relative to the Default.pm
15:56 <@mst> and RDBO apparently can't cope with that
15:56 <@mst> go shout at siracusa
15:57 <@mst> that's a silly mistake
15:57 < ECarroll> On my part, or on siracusa's?
15:57 <@mst> one each
15:57 < ECarroll> I still think that that should have worked, sort of, I
didn't think catalyst would autoload the ./M/* I thought it would
                  require me to include them in my controller
15:58 <@mst> Catalyst is clearly documented as autoloading the contents
of M/ Model/ V/ View/ C/ and Controller/
15:58 < ECarroll> I guess I should have read more of the docs; but, why
does catalyst autoload them, rather than auto-use them in a preproc
15:58 <@mst> eh?
15:58 <@mst> it requires them in during setup
15:58 <@mst> so it *does* basically auto-use them in a preproc
15:59 <@mst> BUT because you fucked up perl's @INC
15:59 < ECarroll> But if it 'use'd them woulden't they not have the
option to be used again
15:59 <@mst> Catalyst loaded (to it) "Dealermade/M/Foo/Bar.pm"
15:59 < ECarroll> mst: ah i'm with you now.
15:59 <@mst> but you were loading "Foo/Bar.pm"
15:59 <@mst> so perl saw it as two separate files
15:59 <@mst> because you'd broken @INC

Evan Carroll





Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to