diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-02-12 16:17:39 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-03-25 14:18:12 +0100 |
commit | 4f302f650070ea50975c0f2bd778a4f864040e43 (patch) | |
tree | 50b9a8a61998fd771536d59c1c04913746ebd98c /ipapython/ipavalidate.py | |
parent | 6ecc4600e9370a637916360396f18699e4b7f59b (diff) | |
download | freeipa-4f302f650070ea50975c0f2bd778a4f864040e43.tar.gz freeipa-4f302f650070ea50975c0f2bd778a4f864040e43.tar.xz freeipa-4f302f650070ea50975c0f2bd778a4f864040e43.zip |
Allow indexing API object types by class
This allows code like:
from ipalib.plugins.dns import dnszone_mod
api.Command[dnszone_mod]
This form should be preferred when getting specific objects
because it ensures that the appropriate plugin is imported.
https://fedorahosted.org/freeipa/ticket/4185
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipapython/ipavalidate.py')
0 files changed, 0 insertions, 0 deletions