Change in ovirt-engine-sdk[master]: codegen: Support plural exceptions
juan.hernandez at redhat.com
juan.hernandez at redhat.com
Tue Jul 1 14:51:28 UTC 2014
Juan Hernandez has submitted this change and it was merged.
Change subject: codegen: Support plural exceptions
......................................................................
codegen: Support plural exceptions
Currently we have a set of entity names whose corresponding collection
name isn't formed by just adding an "s" to the end: the name of the
entity and the collection is the same. But we will soon introduce some
entities where the name of the collection can't be derived in this
simple way, in particular we will introduce the SchedulingPolicy entity
and the SchedulingPolicies collection. To support that, this patch
changes the list of collections to a map, so that the name of the entity
and the name of the collection can be different.
Change-Id: I97d45d533e12723426f98dad2874de3945fd483b
Related: https://bugzilla.redhat.com/1114655
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M src/codegen/rsdl/rsdlcodegen.py
M src/codegen/utils/stringutils.py
2 files changed, 20 insertions(+), 11 deletions(-)
Approvals:
Martin Sivák: Looks good to me, but someone else must approve
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/29418
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I97d45d533e12723426f98dad2874de3945fd483b
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Idan Shaby <ishaby at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list