logo       

Rose::DB::Object subclass instances within Safe compartment: msg#00018

lang.perl.modules.dbi.rose-db-object

Subject: Rose::DB::Object subclass instances within Safe compartment

Hi.

Has anybody out there ever tried passing Rose::DB::Object subclass
instances into a Safe compartment? This is almost certainly an issue
specific to Safe and not specific to the Rose:: family in general,
though I think the Rose::DB::Object internals are "late-binding" with
sufficient frequency to make them especially likely to break within a
Safe compartment. For instance, I can pass an instance of a
Rose::DB::Object subclass into a Safe compartment. The column accessor
methods will work within the compartment. But accessing "child" objects
through the appropriate method breaks, because the object instance
apparently needs to instantiate the child objects (this happens whether
the data for "child objects" was retrieved in a manager query or not;
seems that the fetched data isn't wrapped as an object until it's
actually needed -- this isn't based on any exhaustive research on my
part and may be an incorrect observation).

If anyone has any experience with this or suggestions to get it working
(beyond "don't use Safe" :) I'd love to hear them.

Thanks.
- Ethan

--
Ethan Rowe
End Point Corporation
ethan-O9fzpki4YnJWk0Htik3J/w@xxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise