ASP problem (activestate 2.1, winNT)
Tom
tom at peresys.co.za
Sun May 20 14:19:05 EDT 2001
In ASP you may not use print.
use Response.Write() to return your HTML page
I found this out hard way after getting errors with two or more computers
requesting page at the same time !
"Jim Abrams" <jim at publishingresources.com> wrote in message
news:Xns90A3767A39C47jimpublishingresourc at 64.152.100.91...
>
> I occasionally get this strange error.
>
>
> Python ActiveX Scripting Engine error '80020009'
> Traceback (innermost last): File "<Script Block >", line 227, in ?
> print TR(TD(Href(_link % idf, str(desc) + DateTimeFromCOMDate
> (dtc).strftime(' (%m/%y)')), Class='regular')) File "<Script Block >",
line
> 16,
> in write self.R.Write(buf) File "d:\python21\win32comext\axscript\client
> \pyscript.py", line 146, in __getattr__ return self._scriptItem_.subItems
> [string.lower(attr)].attributeObject
>
> AttributeError: 'None' object has no attribute 'subItems'
>
> /include/sitefiles/menu.inc, line 32
>
> return self._scriptItem_.subItems[string.lower(attr)].attributeObject
>
>
> I believe it has something to do with the object I assign to sys.stdout,
> mapping a .write function to Response.Write to get print statements to
work.
>
> Ideas on what this is?
>
>
More information about the Python-list
mailing list