[prev in list] [next in list] [prev in thread] [next in thread]
List: bricolage-devel
Subject: Re: [Bricolage-Devel] Member API bug
From: David Wheeler <david () kineticode ! com>
Date: 2003-05-13 16:20:21
[Download RAW message or body]
On Monday, May 12, 2003, at 08:19 AM, Scott Lanning wrote:
> Bric::Util::Grp::Parts::Member in HEAD,
> line 691 in get_objects is commented out
>
> # eval " require $package ";
>
> This causes an error
>
> Can't locate object method "lookup" via package
> "Bric::Biz::Category"
>
> etc. Adding `use Bric::Biz::Category` is of course
> futile because it will just fail on another class.
> I had to do this:
>
> # this is API brokenness
> my $pkg = $m->get_object_package();
> eval "require $pkg";
>
> my $object = $m->get_object();
I think this is okay this way. Otherwise, we'll end up with C<use
Bric::Util::Grp> loading the entire Bricolage API, which we don't want.
Mostly, folks will be scripting Bric::Biz::Category, not
Bric::Biz::Grp, so it won't matter.
Regards,
David
--
David Wheeler AIM: dwTheory
david@kineticode.com ICQ: 15726394
Yahoo!: dew7e
Jabber: Theory@jabber.org
Kineticode. Setting knowledge in motion.[sm]
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
Bricolage-Devel mailing list
Bricolage-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic