Danek Duvall wrote:
> On Wed, Feb 04, 2009 at 12:55:44AM -0600, Shawn Walker wrote:
> 
>> I've put a change in place that ensures that "required" attributes 
>> (which as far as I can tell is just the key_attr from an action class) 
>> is checked for during fromlist and fromstr, and then raises an 
>> appropriate ActionError exception.
> 
> There are two categories of "required" attributes.  There are the
> semantically required attributes, such as key_attr (and, I think, target,
> in the case of links), and then a set of other attributes which the actions
> currently expect to be there, but could, if desired, make up reasonable
> values.  This latter group includes owner, group, and mode for filesystem
> actions, for instance.
> 
> I'd hoped to get to the attribute synthesis a long time ago, but have
> always been a bit worried that it's the wrong idea.  We can require them
> explicitly now, and always back off on that later.

I'll just deal with key_attr for now then as it suits my publishing API 
testing.  We can work out a better strategy for other attributes later.

Thanks,
-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to