
This is a multi-part message in MIME format. --------------040905020303040609040101 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, as we all know the current params.py was not completely by the generateSD.py, there are parts that have to be updated manually. now I have post a primarypatch to improve it. http://gerrit.ovirt.org/#/c/4880/ it can generate some codes, but still two parts codes can not be generated. they aretwo dictionaries: _rootClassMap and _elementToClassMap. However, for I do get any clue to know these two dictionaries from the params.py. there are some questions: 1. And the __all__ list which include all the classes of _rootClassMap and _elementToClassMap. And there some classes both in _rootClassMap and _elementToClassMap. 2. And some of class in _rootClassMap inherit GeneratedsSuper class, some inherit BaseResource class, and two classes inherit Link class. And it is the same with _elementToClassMap. so what is the difference between _rootClassMap and _elementToClassMap. What rule to generate these two dictionaries. 3. And also, how to generate the keys in _rootClassMap and _elementToClassMap.Any rule to generate them? there are some items in these two dictionaries "access_control_list" : AccessControlList, # "_" among the word in key "api" : API, "body" : Body, "iscsi" : IscsiDetails, # key "iscsi" is one part of value "IscsiDetails" "storage_domain" : StorageDomain, "topology" : CpuTopology, "creation_status" : Status, # key has a more word "creation" than the value. "parent" : TagParent --------------040905020303040609040101 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font color="#000000">Hi all,<br> <br> </font><font color="#000000" size="3">as we all know the current params.py was not completely by the generateSD.py, </font><font color="#000000"><font size="3">there are parts that have to be updated manually.</font><br> <br> now I have post a </font><font color="#000000" size="3">primary</font><font color="#000000"> patch to improve it. <a class="moz-txt-link-freetext" href="http://gerrit.ovirt.org/#/c/4880/">http://gerrit.ovirt.org/#/c/4880/</a><br> <br> it can generate some codes, but still two parts codes can not be generated.<br> <br> they are</font><font color="#000000" size="3"> two dictionaries: _rootClassMap and _elementToClassMap</font><font color="#000000">.<br> <br> However, for I do get any clue to know these </font><font color="#000000" size="3"> two dictionaries</font><font color="#000000"> from the </font><font color="#000000" size="3"> params.py</font><font color="#000000">.<br> <br> there are some questions:<br> 1.<br> And the </font><font color="#000000" size="3"> __all__ list which include all the classes of _rootClassMap and _elementToClassMap</font><font color="#000000">. <br> And there some classes both in </font><font color="#000000" size="3"> _rootClassMap and _elementToClassMap</font><font color="#000000">. <br> <br> 2.<br> </font><font color="#000000">And some of class in </font><font color="#000000" size="3">_rootClassMap inherit GeneratedsSuper class, some </font><font color="#000000" size="3">inherit BaseResource class</font><font color="#000000"> , and two classes inherit Link class.<br> And it is the same with </font><font color="#000000" size="3">_elementToClassMap.<br> <br> so what is the difference between </font><font color="#000000" size="3">_rootClassMap and _elementToClassMap.<br> What rule to generate these two </font><font color="#000000" size="3">dictionaries</font><font color="#000000">.<br> <br> 3. <br> </font><font color="#000000" size="3">And also, how to generate the keys in </font><font color="#000000" size="3">_rootClassMap and _elementToClassMap.</font><font color="#000000">Any rule to generate them?<br> <br> there are some items in these two </font><font color="#000000" size="3">dictionaries</font><font color="#000000"><br> <br> "access_control_list" : AccessControlList, # "_" among the word in key<br> "api" : API, <br> "body" : Body, <br> "iscsi" : IscsiDetails, # key "</font><font color="#000000">iscsi</font><font color="#000000">" is one part of value "</font><font color="#000000">IscsiDetails"</font><br> <font color="#000000"> "storage_domain" : StorageDomain,<br> "topology" : CpuTopology, </font><br> <font color="#000000"> "creation_status" : Status, </font><font color="#000000"># key has a more word "</font><font color="#000000">creation</font><font color="#000000">" than the value.</font><br> <font color="#000000"> "parent" : TagParent<br> <br> <br> <br> </font><br> <br> <span style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245); display: inline !important; float: none; "></span> <br> </body> </html> --------------040905020303040609040101--