Attributes Invoking External Scripts

Peter Schober peter.schober at univie.ac.at
Thu Aug 7 17:45:03 EDT 2014


* Jason <shibboleth at happycat.org.uk> [2014-08-07 21:26]:
> Does anyone have an example of some ecmascript I can use in the
> scripted attribute that would invoke an external script?

You shouldn't be able to do that (breaking out of the JVM and calling
external code) easily, from my limited understanding of Java.

So the suggestion was to implement whatever the Python script does
inside the IDP (using Python code). That assumes the Python script is
pure Python and does not rely on native code. If it did, you'd have to
rewrite it so that it uses what Java provides instead, which could be
easier than it sounds.
The Perl script you'd need to reimplement in Python or JavaScript or
Ruby, for example. How much effort that will be obviously depends on
the script, what it does and how it's written. I have translated Perl
or Ruby to Python (and Python to JavaScript) almost literally, in
other cases you wouldn't recognize it's doing the same thing.
-peter


More information about the users mailing list