ShaoHe Feng has uploaded a new change for review.

Change subject: add a new tool for auto-generate python entities from schema
......................................................................

add a new tool for auto-generate python entities from schema

it is troublesome to generate python entities by the current
code generation suites of ovirt-engine-sdk.

there are seven NOT_GENERATED codes in the current params.py

and I have writen a new tool as extension of generateDS.py to
simplify the code generation.

Now this patch can add a moudle code, and add an attribution
of a class, when it generate the TEMPLATE_HEADER.

And it is configurable, it is easy to change the moudle name
to be add, just need to change the modules list in the code.
Also it is easy to add the attribution of a class. you just
list the code of this attribution, and tell class name that
this attribution will be add.

yes, I should put the class name and the modules list in a
configure file later.

but there are still some NOT_GENERATED codes remained

this patch is a preliminary idea, now I'm want to get some
suggestions to improve this patch and implate the other
NOT_GENERATED codes remained.

Change-Id: I916f63f1ac68ce2e31456a90c1291997f671af99
Signed-off-by: ShaoHe Feng <shao...@linux.vnet.ibm.com>
---
A src/codegen/genparams.py
1 file changed, 198 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/80/4880/1
--
To view, visit http://gerrit.ovirt.org/4880
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I916f63f1ac68ce2e31456a90c1291997f671af99
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: ShaoHe Feng <shao...@linux.vnet.ibm.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to