From: jiri.zahradil on
Hello,

for my Python application (Windows platform) to be standards
compliant, I need to embbed Ecmascript(Javascript) interpreter - I
need to execute plugins written in this language. Which engine is
suitable for Python, I have found bunch of them. Any recomendations
are welcome.

To be more specific, I think that plugins will be pretty simple, they
will be used to manipulate my class-based datamodel, no special
libraries dependencies ... therefore I prefer some rather simple
solution ...

Jiri

From: Phil Thompson on
On Sat, 5 Jul 2008 06:28:42 -0700 (PDT), "jiri.zahradil(a)gmail.com"
<jiri.zahradil(a)gmail.com> wrote:
> Hello,
>
> for my Python application (Windows platform) to be standards
> compliant, I need to embbed Ecmascript(Javascript) interpreter - I
> need to execute plugins written in this language. Which engine is
> suitable for Python, I have found bunch of them. Any recomendations
> are welcome.
>
> To be more specific, I think that plugins will be pretty simple, they
> will be used to manipulate my class-based datamodel, no special
> libraries dependencies ... therefore I prefer some rather simple
> solution ...

PyQt includes a Javascript interpreter. You can expose Python objects and
properties as Javascript objects and properties.

Phil

From: M�ta-MCI (MVP) on
Hi!

Ecmascript (Jscript) is Active-Scripting compliant.
With PyWin32, you can :
- call JScript functions (with parameters)
- define pieces of code (& run it)

Another way, is to drive Internet-Explorer (via COM). You can set the
IE-Windows as invisible, and connect the motor of execution (of
JScript). Then, you can :
- call JScript functions, with parameters et return ; variables, but
also array (<=> lists)
- connect to JScripts's objects (for read/write)
- write new functions in JScript
- etc.

@-salutations

Michel Claveau




From: Daniel Fetchinson on
> Ecmascript (Jscript) is Active-Scripting compliant.
> With PyWin32, you can :
> - call JScript functions (with parameters)
> - define pieces of code (& run it)
>
> Another way, is to drive Internet-Explorer (via COM). You can set the
> IE-Windows as invisible, and connect the motor of execution (of
> JScript). Then, you can :
> - call JScript functions, with parameters et return ; variables, but
> also array (<=> lists)
> - connect to JScripts's objects (for read/write)
> - write new functions in JScript
> - etc.

Is there a way to do similar things on linux?

Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
From: Tim Roberts on
"jiri.zahradil(a)gmail.com" <jiri.zahradil(a)gmail.com> wrote:
>
>for my Python application (Windows platform) to be standards
>compliant, I need to embbed Ecmascript(Javascript) interpreter - I
>need to execute plugins written in this language.

What standard are you hoping to comply with? I mean, what kind of a
program is this?
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.