Re: [importing] Disabling of AutoReload

2005-07-12 Thread Gregory (Grisha) Trubetskoy
It's interesting how quickly the knowledge about the code you yourself write evaporates without a trace... Somehow the point that import_module cannot require a request object because you usually don't have access to it at the beginning of your code where imports are usually done escaped me..

Re: [importing] Disabling of AutoReload

2005-07-12 Thread Graham Dumpleton
On 13/07/2005, at 3:32 AM, Gregory (Grisha) Trubetskoy wrote: P.S. On magic request caching - I think that if this works, then why not, though I think it needs to be bounced around a little more. BTW - from the code below: _requestCache[thread].pop() was this meant to be del _

Re: [mod_python] Help with memory problems

2005-07-12 Thread dharana
Uh oh, no it doesn't goes away. Check this (custom handler): -- controller.py --- import os from time import time from mod_python import apache from mod_python import Session def handler(req): start_time = time() req.sess = Session.FileSession(req) req.content_type =

Re: [mod_python] Help with memory problems

2005-07-12 Thread dharana
dharana wrote: Uh oh, no it doesn't goes away. Check this (custom handler): -- controller.py --- import os from time import time from mod_python import apache from mod_python import Session def handler(req): start_time = time() req.sess = Session.FileSession(req) re