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.

        But definitely +1 for distinguishing opaque refs and uuids.


-- Ed Leafe


_______________________________________________
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

Reply via email to