<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>I'm working for
integrate mod_python servlet and mod_python.publisher.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>firt af all some
little problem:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004><STRONG>1)</STRONG>
If I leave in httpd.conf "ServerName localew.manord.com" when I start the
tutorial an alert tell me that:localew.manord.com can't be found, with this
statement comment all work fine</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004><STRONG>2)</STRONG>with the tutorial folder under
DocumentRoot all work fine:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004><Directory
D:/discoE/wwwroot/cartelle_sito_mdn/mps_progetti/tutorial><BR>
SetHandler mod_python<BR> PythonHandler
mod_python.servlet<BR> PythonDebug
on<BR> </Directory></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>but all my script
don't stay under DocumentRoot, and with Alias statement I can see them, but with
servlet :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>Alias /tutorial/
"D:/discoE/script/cgi/tutorial/"<BR><Directory
"D:/discoE/script/cgi/tutorial"><BR> SetHandler
mod_python<BR> PythonHandler
mod_python.servlet<BR> PythonDebug
on<BR> </Directory></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>Forbidden You don't
have permission to access /tutorial/ on this server</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004><STRONG>3)</STRONG>
this is only for confirm:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>I already have a
Session instance from publischer program, and the function made a lot
of other work..</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>So in order to use
my function on servlet a workaround may be:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>class
willybase(HTMLPage):</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>
py = {}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004> use_session = False
<------------------------<BR> </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>
def prep(self):<BR>
HTMLPage.prep(self) <BR> self.session
= adatta_ha.sessione(self.req,....)
<--------<BR>
self.use_session=True <------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004>
........</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=727592112-30072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>In this way
cleanup_session etc.. I think will work fine, and I have the same function
called from publisher and servlet</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=727592112-30072004>I'm
right?</SPAN></FONT></DIV></SPAN></FONT></DIV>
<P><FONT face=Tahoma color=#0000ff size=1>Villiam Manera</FONT> <BR><FONT
face=Tahoma size=1>Manifatture del Nord srl</FONT> <BR><FONT face=Tahoma><FONT
size=1>via <SPAN class=727592112-30072004>Mazzacurati
6</SPAN></FONT></FONT><BR><FONT face=Tahoma size=1>42100 Reggio Emilia RE</FONT>
<BR><FONT face=Tahoma size=1>ITALY</FONT> </P>
<P><FONT face=Tahoma size=1>email : vmanera@manord.com</FONT> <BR><FONT
face=Tahoma size=1>www.pennyblack.com</FONT> </P>
<DIV> </DIV></BODY></HTML>