freeipa/ipalib/plugins
Petr Vobornik 646a4ccde3 Content is no more overwritten by error message
When an error which caused calling of report_error occurt, the content of a facet got replaced by error message. There was no way how to force the facet to recreate its content and the facet became unusable.

This patch creates a containter for an error message. On error,  report_error writes its content to error container, content container is hidden and error container is shown. Older comment in a code suggested to move the error message to facet's footer. A message in a footer could be missed by the user and on top of that a footer is sometimes used by various facet and we would have to solve the same problem again.

From experience the cause of an error is usually a missing pkey in a path. Therefore error information suggests user to navigate to top level. It causes to load default facets with default values so errors in navigation state shouldn't happen.

Facet content is displayed back on facet_show. If user tries to display same object as before facet's need_update() would return false, therefore need_update was modified to always return true if error is displayed.

Reproduction:
 1) display any nested entity - ie DNS record
 2) delete its parent pkey from path - &dnszone-pkey=example.com
 3) reload the page with this path

https://fedorahosted.org/freeipa/ticket/2449
2012-03-19 18:37:19 +01:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py Memberof attribute control and update 2012-02-08 10:43:25 +01:00
automember.py Clean up i18n strings 2012-02-10 11:53:40 +01:00
automount.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
baseldap.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
batch.py Parse comma-separated lists of values in all parameter types. This can be enabled for a specific parameter by setting the "csv" option to True. 2011-11-30 17:08:35 +01:00
cert.py Display serial number as HEX (DECIMAL) when showing certificates. 2012-03-14 04:40:35 -04:00
config.py Mark most config options as required 2012-03-12 17:16:57 +01:00
delegation.py Switch --group and --membergroup in example for delegation 2012-02-06 14:13:33 +01:00
dns.py Improve dnsrecord interactive help 2012-03-01 22:12:25 -05:00
entitle.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
group.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
hbacrule.py Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01:00
hbacsvc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
hbacsvcgroup.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
hbactest.py Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01:00
host.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
hostgroup.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
internal.py Content is no more overwritten by error message 2012-03-19 18:37:19 +01:00
kerberos.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
krbtpolicy.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
migration.py Fix migration plugin compat check 2012-03-11 23:50:06 -04:00
misc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
netgroup.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
passwd.py Require current password when using passwd to change your own password. 2011-10-04 15:16:15 +02:00
permission.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
ping.py Document the ping plugin. 2012-01-12 05:46:09 -05:00
pkinit.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
privilege.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
pwpolicy.py Sort password policy by priority 2011-12-01 18:04:30 -05:00
role.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
selfservice.py Fix raw format for ACI commands 2012-02-03 17:04:51 +01:00
selinuxusermap.py Fix deletion of HBAC Rules when there are SELinux user maps defined 2012-01-24 21:09:09 -05:00
service.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
sudocmd.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
sudocmdgroup.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
sudorule.py Add support for sudoOrder 2012-03-01 21:02:33 -05:00
user.py Add status command to retrieve user lockout status 2012-03-02 16:28:54 +01:00
virtual.py Add default success/failure output logging. 2011-02-14 10:23:52 -05:00
xmlclient.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00