RE: [CDBI] Automatic inheritance?

[prev] [thread] [next] [Date index for 2005/09/09]

From: John Drago
Subject: RE: [CDBI] Automatic inheritance?
Date: 03:06 on 09 Sep 2005
Have you tried Class::DBI::Relationship::IsA?

It sounds like it might be right up your alley.


> -----Original Message-----
> From: classdbi-bounces@xxxxx.xxxxxxxxxxxxxxxx.xxx [mailto:classdbi-
> bounces@xxxxx.xxxxxxxxxxxxxxxx.xxx] On Behalf Of melo_am0@xxxxxxx.xxx
> Sent: Thursday, September 08, 2005 8:37 PM
> To: classdbi@xxxxx.xxxxxxxxxxxxxxxx.xxx
> Subject: [CDBI] Automatic inheritance?
>=20
> Hey all-
>=20
> I'm trying to do something weird, and I'm stumped as to how to do it.
I am
> writing some scripts to control a cluster of machines. I have a table
set
> up with each row defining a machine (ip address, etc..) and it's
working
> swimmingly well.
>=20
> I have an issue though. I'd like to be able to subclass the machine
class
> into a machine::windows and machine::linux class since some functions
are
> different depending on if the machine is running windows or linux. I'm
> just not sure how I'd go about it though. At first glance, it seems
like
> the 'select' trigger would work, but would it work with relationships
as
> well? (it seems like before_create or after_create would be called at
some
> point too, but my grasp of the terminology is too weak to decide)
>=20
> So, I guess the question is, will writing a 'select' trigger for my
class
> allow me to hook the contructor into letting me bless the class as a
> subclass? And if so, will class::dbi's @ISA barf on me?
>=20
> Thanks for your patience-
> Andrew
>=20
>=20
> _______________________________________________
> ClassDBI mailing list
> ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
> http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Automatic inheritance?
melo_am0 02:37 on 09 Sep 2005

RE: [CDBI] Automatic inheritance?
John Drago 03:06 on 09 Sep 2005

RE: [CDBI] Automatic inheritance?--thanks!
Andrew Melo 13:46 on 09 Sep 2005

Generated at 23:46 on 13 Sep 2005 by mariachi v0.52