Allow <map:call> to call any function
-------------------------------------
Key: COCOON-1981
URL: https://issues.apache.org/jira/browse/COCOON-1981
Project: Cocoon
Issue Type: Improvement
Components: - Flowscript
Affects Versions: 2.2-dev (Current SVN)
Reporter: Mark Lundquist
Priority: Minor
Currently, <map:call> can only call a function that is a property of the
flowscript global scope itself. This patch allows it to call any function in
the global scope, e.g. "foo.bar.baz".
I provided this code change originally to Jeremy Quinn who committed it to
BRANCH_2_1_X, but it has not yet been incorporated into trunk.
The only additional thing I would suggest... would it be worth it to test if
funName.contains ("."), and if so look up the function the old way? Don't know
if that's significantly faster...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira