Fabian Deutsch has submitted this change and it was merged.

Change subject: config: Add chainability for update() calls
......................................................................


config: Add chainability for update() calls

Previously the following pattern was needed to activate configurations:

    cfg = defaults.Keyboard()
    cfg.update(layout="de")
    cfg.transaction().run()

or
    cfg = defaults.Keyboard()
    cfg.update(layout="de")
    cfg.commit()

now it's possible to chain this up to

    defaults.Keyboard().update(layout="de").commit()

This patch also includes a testcase for this (tiny) feature.

Change-Id: I36a101a7ee6f729241cc99663f2a6986c964dcdd
Signed-off-by: Fabian Deutsch <[email protected]>
---
M src/ovirt/node/config/defaults.py
A tests/nose/defaults.py
2 files changed, 89 insertions(+), 5 deletions(-)



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I36a101a7ee6f729241cc99663f2a6986c964dcdd
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
node-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-patches

Reply via email to