ASP with Python question
Arne Leithe
arne at leithe.no
Sun Sep 12 16:50:43 EDT 1999
On Sun, 12 Sep 1999 17:17:10 GMT, arne at leithe.no (Arne Leithe) wrote:
>It does :-)
However, this syntax doesn't seem to work with COM-objects; for
example:
<%@language = Python%>
<%
fso = Server.CreateObject("Scripting.FileSystemObject")
Session.SetValue('Key', fso)
%>
yields:
Python ActiveX Scripting Engine error '80020009'
Traceback (innermost last): File "<Script Block >", line 3, in ?
Session.SetValue('Key', fso) File "<COMObject Session>", line 2, in
SetValue File "C:\Program Files\Python\win32com\client\dynamic.py",
line 176, in _ApplyTypes_ result = apply(self._oleobj_.InvokeTypes,
COM Error: Member not found. (0x80020003)
?
result = apply(self._oleobj_.InvokeTypes,
if @language is set to Javascript, a similar error message appears,
although the assignment "Session('Key')=fso" works with Javascript.
Is there a way to assign COM-objects to a ASP-collection in Python? (I
know I don't need a FileSystemObject :-))
Arne
--
Arne Leithe, Leithe Consult AS
http://www.leithe.no/
More information about the Python-list
mailing list