summaryrefslogtreecommitdiffstats
path: root/ipapython/py_default_encoding
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-09-12 17:15:39 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-09-30 10:47:03 +0200
commit26bd309c96446b9eda26a08e6924d6e1b4c621fc (patch)
tree32179076ba5958aa58e3d6397f98aeea26e671cb /ipapython/py_default_encoding
parent15b6ed67056ce918e11f7ea5c2d193534b5ce6b5 (diff)
downloadfreeipa-26bd309c96446b9eda26a08e6924d6e1b4c621fc.tar.gz
freeipa-26bd309c96446b9eda26a08e6924d6e1b4c621fc.tar.xz
freeipa-26bd309c96446b9eda26a08e6924d6e1b4c621fc.zip
webui: treat value as pkey in link widget
Current default mechanism of a link widget assumes that pkeys of a current facet are pkeys for the link. It works for the only usage - in password policy. It's rather inflexible since it can't be used if the keys are in other attribute. This behavior is also bad in nested entities - creates a link to itself which is pointless. This patch changes the default behavior to assume that the supplied value are the pkeys and that the last pkey is the value to display. It also keeps the old method of overriding `other_pkeys` method so if the last and only pkey is the actual value to display then the method can tranform it into the pkeys which keeps compatibility with descendant widgets (`host_dnsrecord_entity_link_widget`, `dnsrecord_host_link_widget`). Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'ipapython/py_default_encoding')
0 files changed, 0 insertions, 0 deletions