On 01/26/11 05:31 PM, Keith Mitchell wrote:
On 01/25/11 03:54 PM, Jack Schwartz wrote:HI Jan.On 01/25/11 04:37 AM, Jan Damborsky wrote:My only concern here is a silent failure where nothing is set and no error is generated. Will this be a problem?Hi Jack, thank you very much for review. Please see my response in line. Jan On 01/24/11 10:46 PM, Jack Schwartz wrote:Hi Jan and Keith.I've re-examined just the parts I commented on earlier. Most looks good. Just a few comments:profile/__init__.py:117: I didn't think setters were supposed to return anything. Should it raise an exception to denote anerror condition?From what I have just learnt about Python 'setter', its return value seems to be discarded so unless Keith objects, I will simplify code on lines 116-119in following way: if self.system and user_infos: self.system.users = user_infosThanks, JackActually, the original code was probably correct, now that I think of it. It would error in that case...
I do not have strong opinion on that, so whatever works for you guys :-)Please let me know if I you think it would be appropriate to revert that code
to the original form which generates error if system was not initialized:
@users.setter
def users(self, user_infos):
if user_infos:
self.system.users = user_infos
Thank you,
Jan
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

