Re: Python as client-side browser script language

2005-06-24 Thread jeoffwilks
Sorry to resurrect a slightly older topic, but I want to clarify some points about how the browser DOM and the script language interact. Paul Rubin wrote: > Huh? The language itself has to provide the sandbox. > Remember that scripts have to be able to see > certain DOM elements but not others, a

Re: Python as client-side browser script language

2005-06-09 Thread Magnus Lycka
Paul Rubin wrote: > Magnus Lycka <[EMAIL PROTECTED]> writes: > >>Of course, one might suggest that it's the task of the browser, >>and not of the scripting language, to provide a safe sandbox >>where scripts can mess around and without causing havoc on >>your computer. Such a system in the browser

Re: Python as client-side browser script language

2005-06-02 Thread Paul Boddie
Greg Ewing <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > If the DOM objects are implemented as built-in Python > types, there shouldn't be any difficulty with that. > Python objects have complete control over which attributes > can be read or written by Python code. > > Tha

Re: Python as client-side browser script language

2005-06-01 Thread Paul Rubin
Greg Ewing <[EMAIL PROTECTED]> writes: > If the DOM objects are implemented as built-in Python > types, there shouldn't be any difficulty with that. > Python objects have complete control over which attributes > can be read or written by Python code. No, they don't. See the sorry history of the r

Re: Python as client-side browser script language

2005-06-01 Thread Greg Ewing
Paul Rubin wrote: > Huh? The language itself has to provide the sandbox. > Remember that scripts have to be able to see > certain DOM elements but not others, and some of them have to be > read-only, etc. If the DOM objects are implemented as built-in Python types, there shouldn't be any diffi

Re: Python as client-side browser script language

2005-06-01 Thread Paul Rubin
Magnus Lycka <[EMAIL PROTECTED]> writes: > Of course, one might suggest that it's the task of the browser, > and not of the scripting language, to provide a safe sandbox > where scripts can mess around and without causing havoc on > your computer. Such a system in the browser could be used to > gra

Re: Python as client-side browser script language

2005-06-01 Thread Magnus Lycka
Rune Strand wrote: > What would it take to create a Firefox extension that enables Python as > a script language in the browser - just like Javascript? Is it at all > possible? Are the hundred good reasons not to bother? There are certainly security issues. A simple implementation that started a "

Python as client-side browser script language

2005-05-31 Thread Rune Strand
What would it take to create a Firefox extension that enables Python as a script language in the browser - just like Javascript? Is it at all possible? Are the hundred good reasons not to bother? I once made an application that used MozPython[1]. It was fun and very fast compared to the Mod_Python