Python and ASP oddity

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Thu Nov 7 08:44:17 EST 2002


(Win2K, Python 2.2.2)

We are using Python as the ASP programming language and are trying to
store an object reference in the ASP Session object. The syntax is
something like:

Session.SetValue("spam", spam.chunks())

where spam.chunks() returns a new instance of the chunks object -
which is pure Python.

However, this gives a COM error complaining about SAFEARRAYs.

So we tried wrapping the chunks object up in a COM wrapper and tried
again.

This time it complained about the lack of a default value. Suspicious
of it's intentions, we supplied a default value. However, we then
found that it was merely retrieving the default value and storing that
in the Session object. The silly thing.

There is no problem storing simple values in the Session object but
the problem remains that we can't figure out how to store Python
objects in there.

Can anyone offer any insight?

Thanks

--
Dale Strickland-Clark
Riverhall Systems Ltd



More information about the Python-list mailing list