473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Active Scripting in Python

I donwloaded win32all for Python 2.3 and installed it.

I manually run pyscript.py and it returned "successfully registered"
message.

For a simple test(on client side), I created the following html:

<script language=Python>
alert("hello world")
</script>

And opened it in IE6.0 on WinXP. Unfortunately, it doesn't show
anything.

After googling, I tried "pyscript.py --debug" and the trace collector
shows:

Object with win32trace dispatcher created (object=None)
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE2-A4F9-11CF-8F20-00805F2CD064}'),) None None
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE1-A4F9-11CF-8F20-00805F2CD064}'),) None None

Am I doing something stupid?

Jane
Jul 18 '05 #1
4 5318
ja***********@hotmail.com (Jane Austine) writes:
I donwloaded win32all for Python 2.3 and installed it.

I manually run pyscript.py and it returned "successfully registered"
message.

For a simple test(on client side), I created the following html:

<script language=Python>
alert("hello world")
</script>

And opened it in IE6.0 on WinXP. Unfortunately, it doesn't show
anything.

After googling, I tried "pyscript.py --debug" and the trace collector
shows:

Object with win32trace dispatcher created (object=None)
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE2-A4F9-11CF-8F20-00805F2CD064}'),) None None
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE1-A4F9-11CF-8F20-00805F2CD064}'),) None None

Am I doing something stupid?


I think Mark Hammond has disabled the scripting extensions by default,
go to Mark Hammonds site, there should be an explanation on how to
enable it there...

Jul 18 '05 #2
On Wed, 2003-09-03 at 23:23, Jane Austine wrote:
I donwloaded win32all for Python 2.3 and installed it.

I manually run pyscript.py and it returned "successfully registered"
message.

For a simple test(on client side), I created the following html:

<script language=Python>
alert("hello world")
</script>

And opened it in IE6.0 on WinXP. Unfortunately, it doesn't show
anything.


I can't test this right now because my Windows machine at home is dead
(long story), but have you tried using:

print "hello world"

OR

document.write("hello world")

I guess my question is whether "alert" is available when you're using
language="Python".

// m
Jul 18 '05 #3

"Jane Austine" <ja***********@hotmail.com> wrote in message
news:ba**************************@posting.google.c om...
I donwloaded win32all for Python 2.3 and installed it.

I manually run pyscript.py and it returned "successfully registered"
message.

For a simple test(on client side), I created the following html:

<script language=Python>
alert("hello world")
</script>

And opened it in IE6.0 on WinXP. Unfortunately, it doesn't show
anything.

After googling, I tried "pyscript.py --debug" and the trace collector
shows:

Object with win32trace dispatcher created (object=None)
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE2-A4F9-11CF-8F20-00805F2CD064}'),) None None
in _InvokeEx_ with GetInterfaceSafetyOptions 0 1
(IID('{BB1A2AE1-A4F9-11CF-8F20-00805F2CD064}'),) None None

Am I doing something stupid?

Jane


Try pyscript_rexec.py instead, with the line 184(raise) of rexec.py
commented out.
Jul 18 '05 #4
Kim ...

Thanks for the information ...

Disabling the raise statement in pyscript.py
and then running pyscript_rexec.py worked OK ...

/Python/Lib/site-packages/win32comext/axscript/client

pyscript.py

def __setattr__(self, attr, value) :
...
# raise AttributeError, attr # line disabled
...

python pyscript_rexec.py # Python Script Registration

Example ...

http://fastq.com/~sckitching/Python/...X_pyscript.htm

Only tested with .... < win98_SE | IE6 | Python 2.2.1 >

--
Cousin Stanley
Human Being
Phoenix, Arizona
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: FloridaJoe | last post by:
Thanking everyone in advance, I have been an AS400 RPG programmer for many years - moving into visual studio. I have both visual studio 6 and .net, but far more experience with 6. I would like...
4
by: The_Incubator | last post by:
As the subject suggests, I am interested in using Python as a scripting language for a game that is primarily implemented in C++, and I am also interested in using generators in those scripts... ...
41
by: Richard James | last post by:
Are we looking at the scripting world through Python colored glasses? Has Python development been sleeping while the world of scripting languages has passed us Pythonista's by? On Saturday...
33
by: Quest Master | last post by:
I am interested in developing an application where the user has an ample amount of power to customize the application to their needs, and I feel this would best be accomplished if a scripting...
6
by: Wolfgang Keller | last post by:
Hello, I'm looking for a spreadsheet application (MacOS X prefered, but Windows, Linux ar available as well) with support for Python scripting (third-party "plug-ins" are ok) and a database...
0
by: darrick | last post by:
I am very very new to python. I implemented an application to run vbscript using IActiveScriptSite and others. It works well in vbscript. I want to include python script and run into problems. ...
15
by: Birahim FALL | last post by:
Hi, I'm very fresh to PostgreSQL, coming from Oracle. I want to developp web applications based on apache and postgresql. Is there an equivalent of OWA server (Oracle Web Application server) for...
0
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry...
10
by: mukeshrasm | last post by:
Hi I have developed website using php and mysql and in that I have used JavaScript as well. I tried to run this website on different computer and set its browser's Active Scripting disabled. so...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.