473,804 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Active Scripting in Python

I donwloaded win32all for Python 2.3 and installed it.

I manually run pyscript.py and it returned "successful ly 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.p y --debug" and the trace collector
shows:

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

Am I doing something stupid?

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

I manually run pyscript.py and it returned "successful ly 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.p y --debug" and the trace collector
shows:

Object with win32trace dispatcher created (object=None)
in _InvokeEx_ with GetInterfaceSaf etyOptions 0 1
(IID('{BB1A2AE2-A4F9-11CF-8F20-00805F2CD064}') ,) None None
in _InvokeEx_ with GetInterfaceSaf etyOptions 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 "successful ly 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="Pytho n".

// m
Jul 18 '05 #3

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

I manually run pyscript.py and it returned "successful ly 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.p y --debug" and the trace collector
shows:

Object with win32trace dispatcher created (object=None)
in _InvokeEx_ with GetInterfaceSaf etyOptions 0 1
(IID('{BB1A2AE2-A4F9-11CF-8F20-00805F2CD064}') ,) None None
in _InvokeEx_ with GetInterfaceSaf etyOptions 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__(sel f, 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
4003
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 to create a program that could access our active directory and display an up to date telephone list for the organization on client computers. Does anyone know where I may find an example of a program that will do this, or know the basics of how it...
4
3797
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... Initially I was justing looking at using Python for some event scripting. So basically an event would trigger an object to run the appropriate Python script, which would be run in it's entirety and return control to the C++ code. After looking...
41
2819
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 Slashdot ran this article on the "best" scripting languages. http://developers.slashdot.org/developers/04/06/12/2125229.shtml?tid=126&tid=156 "Folks at the Scriptometer conducted a practical survey of which scripting language is the best. While...
33
2748
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 language was available. However, I want to code this application in Python, and I have not yet heard of an implementation of another scripting language into Python. An example of what I mean is this (an implementation of Lua into Ruby -- which I'd...
6
3587
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 interface. Applications that I know of (that they exist) are: MS Excel Quattro
0
1143
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. The way i setup my application, I create the script language engine, call AddNamedItem("XXX", SCRIPTITEM_ISVISIBLE | SCRIPTITEM_ISSOURCE), give the engine the script to execute, and finally SetScriptState(SCRIPTSTATE_CONNECTED). After that, I...
15
4308
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 postgresql. Shortly, OWA provides an apache module and a set of stored procedures/functions that generate html pages. A simple example could be the following procedure :
0
2592
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 under HKU/software/microsoft/... which gets modified when we manually change the setting for active scripting in IE from dword 3 to 0. But that solution is not viable because programatically registry updation is dependent the user rights
10
3745
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 javascript is not working on that system. Now what i wanted that if user's javascript/active scripting is disbaled then it should prompt user to enable it or it enable automatically. How can i do this?
0
10603
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.