On 08/05/10 16:07, Ethan Quach wrote:
Hi all,

The following is the code review for the AI manifest schema changes,
and the installadm criteria changes.  It is a rather large review, so
partial/piecewise review would be also be fine, just let us know what
you're reviewing.  We've pre-requested reviews from some of you
already, but all comments welcomed by Aug 16th.


Webrev:
-------------
http://cr.opensolaris.org/~equach/webrev.ai-schema/

Bugs:
--------
16423 <http://defect.opensolaris.org/bz/show_bug.cgi?id=16423> Updates to AI schema should be made 15449 <http://defect.opensolaris.org/bz/show_bug.cgi?id=15449> installadm add validates combined manifest against image-specific schema as well as schema in /usr/share/auto_install/ 6975043 <http://bugs.opensolaris.org/view_bug.do?bug_id=6975043> separate criteria and ai manifest



thanks,
-ethan

Ethan,

I focused only on the python files.

*~*~*~*~*~*~

usr/src/cmd/ai-webserver/set_criteria.py

106-107 - we should be raising an exception (I would recommend
RuntimeError or SystemExit), instead of simply bailing out with sys.exit.

113-115 - same as above

*~*~*~*~*~*~

usr/src/lib/install_utils/DefValProc.py

284-285:  combine into one line

command_list = [XML_VALIDATOR]


*~*~*~*~*~*~

usr/src/cmd/ai-webserver/publish_manifest.py

97-98:  change to:

parser.error([error_message])

the error() method automatically does the sys.exit(1) for you and
allows you to specify an error message to the user.

160:  change to:

if not entries[0]:

to follow the syntax of truth testing in line 159

166:  same as above

373:  change to

if append_manifest is not None:

705:  the .keys() function call is no longer needed.  you can do:

for name in criteria_dict:

and it will iterate over the keys

722:  the comment appears to be chopped off

786:  dead comment?

1171-1172:  indent each line 4 characters





-----

-Drew

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to