Repository navigation
LibDoc Model Version3 - #3720
Conversation
74981bf to
3ada45c
Compare
|
@pekkaklarck JSON Ex/Import and JSONSpec will be done in separate task. Also the "removal" of the enum values and the real datatype will be a separate task. |
pekkaklarck
left a comment
There was a problem hiding this comment.
Looks great! Most of the comments are about style and I was about to merge the code as-is. Noticed a bug in reading type information from specs in the end so at least the needs to be still fixed.
|
Done and will work on top this. |
| 'kind': a.kind, | ||
| 'required': a.required, | ||
| 'repr': unicode(a) | ||
| } for a in self.args] |
There was a problem hiding this comment.
In my earlier comment I meant that _convert_arguments could be removed and the list comprehension it contained could be just used where it was called. _arg_to_dict was fine as it was. Sorry for not being clear about that. Good thing is that the code is fine like this as well.
| type_elem = arg.find('type') | ||
| if type_elem is not None: | ||
| if not spec.types: | ||
| spec.types = {} |
There was a problem hiding this comment.
It occurred to me that this if could be avoided by using spec = ArgumentSpec(types={}) earlier.
| if type_elem is not None: | ||
| if not spec.types: | ||
| spec.types = {} | ||
| spec.types[name] = type_elem.text |
There was a problem hiding this comment.
Great that the bug with setting type info is fixed. It would have been good to add a test validating the fix as well but I assume you are going to add more round-trip tests in the future.
* model changed, xmlwriter, htmlwriter, specbuilder use argspec * added/fixed atest mostly * fixed review comments * fixed atest * fixed dictionary order * added all atests, added javabuilder * final switched Libdoc to Version 3 formats * final review fix
No description provided.