> -----Original Message----- > From: Ed Leafe [mailto:ed.le...@rackspace.com] > Sent: 07 March 2011 16:28 > To: Ewan Mellor > Cc: Chris Behrens; Rick Harris; openstack-xenapi@lists.launchpad.net > Subject: Re: [Openstack-xenapi] XenAPI virt-layer Variable Naming- > Scheme > > On Mar 6, 2011, at 8:29 AM, Ewan Mellor wrote: > > > I do use _rec for a record, if I feel that it needs distinguishing > explicitly. I'd prefer that we allowed vm or vm_rec for a record (that > would give us less to fix up, apart from anything else!) > > In most of the code, the convention is to refer to a modeled > object using the singular form of the table name; in this case, it > should probably be 'instance'. As we're using 'vm' as an alias for > instance, it would seem that either 'instance' or 'vm' would be > consistent. I don't know of any other modeled object referred to with > the '*_rec' name.
_rec is used a lot in lp:nova/plugins/xenserver/xenapi/etc/xapi.d/plugins. Ewan. _______________________________________________ Mailing list: https://launchpad.net/~openstack-xenapi Post to : openstack-xenapi@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-xenapi More help : https://help.launchpad.net/ListHelp