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..
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 _
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 =
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