Change in ovirt-engine-sdk[sdk_3.5]: codegen: Support plural exceptions

juan.hernandez at redhat.com juan.hernandez at redhat.com
Tue Jul 1 14:52: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>
(cherry picked from commit e9d510434a94b19435440e7b0769f96c5a4d0f0c)
---
M src/codegen/rsdl/rsdlcodegen.py
M src/codegen/utils/stringutils.py
2 files changed, 20 insertions(+), 11 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/29458
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I97d45d533e12723426f98dad2874de3945fd483b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list