Issue483305

classification
Title: Run __init__.py in PyServlet.
Type: rfe Severity: normal
Components: Core Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: amak, bckfnn, fwierzbicki
Priority: low Keywords:

Created on 2001-11-19.09:20:32 by bckfnn, last changed 2012-03-19.23:51:30 by amak.

Files
File name Uploaded Description Edit Remove
unnamed amak, 2012-03-19.23:51:30
Messages
msg3005 (view) Author: Finn Bock (bckfnn) Date: 2001-11-19.09:20:32
It could be very usefull if a script was run when the 
PyServlet is loaded.

Arun Sharma suggested that __init__.py is run when 
loading. I would also suggest that another script is 
run when the servlet is destroyed (__del__.py maybe).

getServletContext().getRealPath("__init__.py")
getServletContext().getRealPath("__del__.py")


msg6879 (view) Author: Alan Kennedy (amak) Date: 2012-03-19.21:08:29
Frank, is this worth doing?

I'll do it if you think its worthwhile.

Otherwise let's close it.
msg6882 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2012-03-19.21:18:03
Alan: It sounds like you don't think so, and you are our resident Servlet expert. Closing bugs that are more than a decade old is fun :)
msg6904 (view) Author: Alan Kennedy (amak) Date: 2012-03-19.23:51:30
Agreed.

The web application invocation situation changed completely in 2004 with
WSGI, and we have a good and flexible servlets->WSGI story.

I really consider the PyServlet to be more of an example than an
infrastructure on which to build serious applications. If I had added
PyServlet to the codebase, I would have added it under the Demo directory.

And now that it's been out there so long, I'd prefer not to change the
behaviour.
History
Date User Action Args
2012-03-19 23:51:30amaksetfiles: + unnamed
messages: + msg6904
2012-03-19 21:18:03fwierzbickisetstatus: open -> closed
resolution: out of date
messages: + msg6882
2012-03-19 21:08:29amaksetnosy: + amak
messages: + msg6879
2009-03-06 19:16:22fwierzbickisetpriority: normal -> low
2008-12-15 18:44:02fwierzbickisetcomponents: + Core, - None
2008-11-01 02:52:07fwierzbickisetnosy: + fwierzbicki
2001-11-19 09:20:32bckfnncreate