My modules doesn't seem to reload in IIS asp pages

Pieter Claerhout Pieter_Claerhout at CreoScitex.com
Tue Oct 23 10:00:22 EDT 2001


Try to change the code to:

<%@ LANGUAGE="Python"%>
<%

from marcipan.Receipees import Receipees, Categories

reload(Receipees)
reload(Categories)

# stuff
rcps = Receipees()
id = Request(rcps.getKey())
if str(id) != 'None':
    rcp = rcps.getOneById(id)
else:
    rcp = rcps.getNew()

%>

Should work fine that way...


Pieter


-----Original Message-----
From: Max M [mailto:maxm at normik.dk]
Sent: Tuesday, October 23, 2001 3:55 PM
To: python-list at python.org
Subject: My modules doesn't seem to reload in IIS asp pages


I am writing .asp pages with Python, and my modules doesn't seem to reload.

I see changes i make in the html when editing the page, but changes I make
in the modules does not go through.

Isn't this correct?

<%@ LANGUAGE="Python"%>
<%
import marcipan
reload(marcipan)
from marcipan.Receipees import Receipees, Categories

# stuff
rcps = Receipees()
id = Request(rcps.getKey())
if str(id) != 'None':
    rcp = rcps.getOneById(id)
else:
    rcp = rcps.getNew()
%>

Win2K, SP2, Python2.11

regards Max M


-- 
http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list