Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7836

Re: Run Python script from JS

Date 2011-06-17 10:07 -0700
From Tim Roberts <timr@probo.com>
Organization Providenza & Boekelheide, Inc.
Subject Re: Run Python script from JS
References <5346fc8e-9807-4752-bd3f-d4278e008379@y2g2000yqk.googlegroups.com> <mdulv6hbv8ci0dpe51cl23f1e0ciu95oil@4ax.com> <BANLkTimixKbVEMGxVY-x_5qm8YqK=8uHEQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.82.1308330433.1164.python-list@python.org> (permalink)

Show all headers | View raw


Hansmeet Singh wrote:
> for xhtml wouldnt the syntax be <script type = "text/python">??
> or am i on some other planet

No, you're right.  Before you get too excited, however, I want to
emphasize how limited this option is.  This will ONLY work if Python has
been installed on the machine running the browser, AND if Python has
been enabled as an ActiveScripting language on that machine.  The
Windows Python installations have the ability to do that, but it is not
done automatically because the security implications are not fully
understood.  (Well, more precisely, there are known attack vectors that
make it too dangerous for widespread deployment.)

-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Run Python script from JS Gnarlodious <gnarlodious@gmail.com> - 2011-06-16 15:11 -0700
  Re: Run Python script from JS Chris Rebert <clp2@rebertia.com> - 2011-06-16 16:55 -0700
  Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-16 23:53 -0700
    Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-17 10:07 -0700
  Re: Run Python script from JS Daniel Kluev <dan.kluev@gmail.com> - 2011-06-17 18:36 +1100

csiph-web