yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65722
[Bug 1703313] [NEW] DataTable column level policy_rules(allowed function) throw exception
Public bug reported:
Version: Ocata
Problem: The function allowed(self, request) in class Column which is in horizon/tables/base.py will throw exception "TypeError: 'str' object is not callable" if you add the "policy_rules" for DataTable column.
I check the history:
In bellowing changelist, the "DataTable column level policy" was merged on Dec 9, 2016
https://github.com/openstack/horizon/commit/0744e8e5942858756e80aff6f16fd5f89dec6077
But there was a refactor for "POLICY_CHECK_FUNCTION" on Nov 25, 2016
https://github.com/openstack/horizon/commit/f5685ebe468626a983954132c3e5754e9954563b
The refactor shall also apply to "DataTable column level policy",
otherwise, the exception will be throw.
** Affects: horizon
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1703313
Title:
DataTable column level policy_rules(allowed function) throw exception
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Version: Ocata
Problem: The function allowed(self, request) in class Column which is in horizon/tables/base.py will throw exception "TypeError: 'str' object is not callable" if you add the "policy_rules" for DataTable column.
I check the history:
In bellowing changelist, the "DataTable column level policy" was merged on Dec 9, 2016
https://github.com/openstack/horizon/commit/0744e8e5942858756e80aff6f16fd5f89dec6077
But there was a refactor for "POLICY_CHECK_FUNCTION" on Nov 25, 2016
https://github.com/openstack/horizon/commit/f5685ebe468626a983954132c3e5754e9954563b
The refactor shall also apply to "DataTable column level policy",
otherwise, the exception will be throw.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1703313/+subscriptions