Re: [Tutor] mod python

2008-04-22 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello, I think this is a problem with mod_python and Apache
configuration, you should checkout mod_python configuration for
Apache+Windows.

Most likely your problem is the mod_python library file, use this
instead (more appropiate for windows):

LoadModule python_module modules/mod_python.dll

I suggest you to consult the Apache configuration documentation on Windows.

Regards,
Carlos

On Tue, Apr 22, 2008 at 4:18 PM, SwartMumba snake [EMAIL PROTECTED] wrote:
 Hello Python Mailing List

 I am trying to set up mod python 3.3.1. I have python 2.5.1, apache 2.2
 server, and my os is Vista. The problem is that after I install mod python,
 there is no mod_python.so in the apache modules directory. Thus the
 LoadModule python_module modules/mod_python.so call does not work.

 What should I do.

 Thanks.

  
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
 now.
 ___
  Tutor maillist  -  Tutor@python.org
  http://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Mod python setup

2006-11-22 Thread Jacob Abraham
Hi All,

  I've been using Trac (http://trac.edgewall.org/) for some time you will be 
suprised to know that
I use it along with a Clearcase repository. I've also written a small
plugin that displays the MSN logs. Soon some of this code will be put
into trac hacks with an open source license.

  Forgive me but I have a very silly question to ask on problems with
my multisite mod python setup. I have two trac sites both of with have
plugins with slightly different code (One navigates Base Cleacase
while the other UCM Clearcase), but for some reason both sites use the
plugins of the site I load first. I am aware that this issue comes
from my mod python setup. Please help me with the same. I'm not too
sure if this is the right forum to ask this question.

My current mod python setup looks like this.

LoadModule python_module modules/mod_python.so
LoadModule sspi_auth_module modules/mod_auth_sspi.so


Location /trac
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonPath ['C:\\devutil\\lib\\\tracprod'] + sys.path
   PythonOption TracEnv C:\\devutil\trac\tracprod
   PythonOption TracUriRoot /trac
/Location

Location /trac/login
AuthName A Protected Place
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIBasicPreferred On
# SSPIUsernameCase lower
require valid-user
/Location

Location /tracdev
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonPath ['C:\\devutil\\lib\\\tracdev'] + sys.path
   PythonOption TracEnv C:\\devutil\trac\tracdev
!--
D([mb, nbsp; PythonOption TracUriRoot /tracdevbr /lt;/Locationgt;br 
/br /lt;Location /tracdev/logingt;br / nbsp; nbsp; nbsp; 
nbsp;AuthName quot;A Protected Placequot;br / nbsp; nbsp; nbsp; 
nbsp;AuthType SSPIbr / nbsp; nbsp; nbsp; nbsp;SSPIAuth Onbr / nbsp; 
nbsp; nbsp; nbsp;SSPIAuthoritative Onbr / nbsp; nbsp; nbsp; 
nbsp;SSPIOfferBasic Onbr / nbsp; nbsp; nbsp; nbsp;SSPIBasicPreferred 
Onbr / nbsp; nbsp; nbsp; nbsp;# SSPIUsernameCase lowerbr / nbsp; 
nbsp; nbsp; nbsp;require valid-userbr /lt;/Locationgt;br /br 
/Thanking You.br /br /Regards,br //div,1]
);
D([mb,div style\u003d\direction:ltr\span class\u003dsgJacob Abrahambr 
//span/div,0]
);
D([ce]);

//--   PythonOption TracUriRoot /tracdev
/Location

Location /tracdev/login
AuthName A Protected Place
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIBasicPreferred On
# SSPIUsernameCase lower
require valid-user
/Location

Thanking You.

Regards,

Jacob Abraham



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Mod-python

2006-06-12 Thread patricia
Hi!

I have about 17 lines of text (about system information) that I need to pass to
a remote web server AND I've been asked to send this data via Apache. I have to
write a python script that will fetch a URL to pass this text. I understand that
if I want to use the POST method, I would need to have a page with a submit
button, and this is not the case. I also know that with GET, the length of the
url is limited. What is the best way to send a long string?

Hope anyone can point me to the right direction..
Thanks,
Patricia

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Mod-python

2006-06-12 Thread Dustin Mitchell
Well, POST or PUT are the normal ways to do that.  You need to interact 
with the person running the web server to see how they need it 
delivered - if they're expecting a GET and you give them a POST, it 
isn't going to work very well :)

Dustin

On Jun 12, 2006, at 2:48 PM, patricia wrote:

 Hi!

 I have about 17 lines of text (about system information) that I need 
 to pass to
 a remote web server AND I've been asked to send this data via Apache. 
 I have to
 write a python script that will fetch a URL to pass this text. I 
 understand that
 if I want to use the POST method, I would need to have a page with a 
 submit
 button, and this is not the case. I also know that with GET, the 
 length of the
 url is limited. What is the best way to send a long string?

 Hope anyone can point me to the right direction..
 Thanks,
 Patricia

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Mod-python

2006-06-12 Thread Peter Jessop

 I have about 17 lines of text (about system information) that I need to pass 
 to
 a remote web server AND I've been asked to send this data via Apache. I have 
 to
 write a python script that will fetch a URL to pass this text. I understand 
 that
 if I want to use the POST method, I would need to have a page with a submit
 button, and this is not the case. I also know that with GET, the length of the
 url is limited. What is the best way to send a long string?

When you say you that you want to send this data via Apache do you
mean that the web server you are sending to is running Apache or that
you are communicating from one server to another?

If you simply want to emulate a a web page with a submit button that
sends a Post you do it with code a bit like the following

import urllib, urllib2
url = http://www.somesite.com/somefolder/exampl1.cgi;
dict = {}
dict[field1] = value1
dict[field2] = value2
...
dict[fieldn] = valuen
urldata = urllib.urlencode(dict)
req = urllib2.Request(url)
req.add_header('User-agent','Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0')
fd = urllib2.urlopen(req,urldata)

Regards
Peter Jessop




 Hope anyone can point me to the right direction..
 Thanks,
 Patricia

 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Mod-python

2006-06-12 Thread Patricia G.
Hi, 
When you say you that you want to send this data via Apache do youmean that the web server you are sending to is running Apache

Yes.If you simply want to emulate a a web page with a submit button thatsends a Post you do it with code a bit like the following
import urllib, urllib2url = "" href="http://www.somesite.com/somefolder/exampl1.cgi">http://www.somesite.com/somefolder/exampl1.cgidict = {}dict[field1] = value1
dict[field2] = value2...dict[fieldn] = valuenurldata = urllib.urlencode(dict)req = urllib2.Request(url)req.add_header('User-agent','Mozilla/4.0 (compatible; MSIE 
5.5; Windows NT 5.0')fd = urllib2.urlopen(req,urldata)RegardsPeter Jessop

I'll try this out. Thank you!
Patricia 
 Hope anyone can point me to the right direction.. Thanks,
 Patricia ___ Tutor maillist-Tutor@python.org 
http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor