Re: a little more help with python server-side scripting

2006-02-24 Thread John Salerno
Paul Boddie wrote: > To sum up: > > 1. Copy the three line "CGI with Python" example, save it as > yourfile.py, upload it, test it. If it works, celebrate and move > on to step 2. If it doesn't, move on to step 2 anyway. ;-) > > 2. Copy the Web page example from the Microsoft link, sav

Re: a little more help with python server-side scripting

2006-02-24 Thread Paul Boddie
John Salerno wrote: > > Well, I appreciate the help. I'm trying to figure it out, but it seems > like with each new post, there is some new technology being mentioned or > new method to do what I'm trying to do. Let's just consolidate what we've learned here. Your provider says that you can serve

Re: a little more help with python server-side scripting

2006-02-24 Thread John Salerno
Magnus Lycka wrote: > Listen John. This will be the last time I respond > to this thread, since you just ask more and more > instead of digesting all the information you are > given. Why should we spend time on answers if you > don't read them properly anyway. Well, I appreciate the help. I'm try

Re: a little more help with python server-side scripting

2006-02-24 Thread Magnus Lycka
John Salerno wrote: > But isn't this code: > > Response.Write('Python Test') > Response.write('Smaller heading') > > written using ASP instead of Python? Listen John. This will be the last time I respond to this thread, since you just ask more and more instead of digesting all the information yo

Re: a little more help with python server-side scripting

2006-02-24 Thread Gerard Flanagan
John Salerno wrote: > Kent Johnson wrote: > > John Salerno wrote: > >> Magnus Lycka wrote: > >> > >>> The other option is ASP. You have been given information about > >>> that already. Be aware that ASP does not imply VBScript. You can > >>> use Python in ASP as long as that's enabled. It seems to

Re: a little more help with python server-side scripting

2006-02-24 Thread Magnus Lycka
John Salerno wrote: > Maybe I'm misunderstanding what is meant when you say to use ASP. I'm > thinking that it involves having to learn another language (such as C# > with ASP.NET), instead of writing my code in Python. Is that not the case? Nope. Just like CGI, ASP is language agnostic. It's a

Re: a little more help with python server-side scripting

2006-02-24 Thread Kent Johnson
John Salerno wrote: > Kent Johnson wrote: > >> John Salerno wrote: >> >>> Magnus Lycka wrote: >>> The other option is ASP. You have been given information about that already. Be aware that ASP does not imply VBScript. You can use Python in ASP as long as that's enabled. It seems to

Re: a little more help with python server-side scripting

2006-02-24 Thread John Salerno
Kent Johnson wrote: > John Salerno wrote: >> Magnus Lycka wrote: >> >>> The other option is ASP. You have been given information about >>> that already. Be aware that ASP does not imply VBScript. You can >>> use Python in ASP as long as that's enabled. It seems to be exactly >>> what you are asking

Re: a little more help with python server-side scripting

2006-02-24 Thread Kent Johnson
John Salerno wrote: > Magnus Lycka wrote: > >> The other option is ASP. You have been given information about >> that already. Be aware that ASP does not imply VBScript. You can >> use Python in ASP as long as that's enabled. It seems to be exactly >> what you are asking for, so I don't understand

Re: a little more help with python server-side scripting

2006-02-24 Thread John Salerno
Magnus Lycka wrote: > The other option is ASP. You have been given information about > that already. Be aware that ASP does not imply VBScript. You can > use Python in ASP as long as that's enabled. It seems to be exactly > what you are asking for, so I don't understand why you seem to reject > it

Re: a little more help with python server-side scripting

2006-02-24 Thread Magnus Lycka
John Salerno wrote: > Ok, seems like the verdict is that the server doesn't have mod_python > nor does it detect the .psp extension. It can, however, detect the .py > extension. But does this mean I can simply include Python code in my > HTML files, and then give my HTML files a .py extension?

Re: a little more help with python server-side scripting

2006-02-23 Thread Paul Boddie
John Salerno wrote: > Paul Boddie wrote: > > > No, it means that you either write Python programs which produce pages > > as output, according to the CGI specification, or that you embed Python > > code inside ASP files, as described in the above document. > > > I haven't used ASP, and I've been wo

Re: a little more help with python server-side scripting

2006-02-23 Thread Gerard Flanagan
John Salerno wrote: > > Ok, seems like the verdict is that the server doesn't have mod_python > nor does it detect the .psp extension. It can, however, detect the .py > extension. But does this mean I can simply include Python code in my > HTML files, and then give my HTML files a .py extension? N

Re: a little more help with python server-side scripting

2006-02-23 Thread John Salerno
Paul Boddie wrote: > No, it means that you either write Python programs which produce pages > as output, according to the CGI specification, or that you embed Python > code inside ASP files, as described in the above document. > I haven't used ASP, and I've been working hard to remove from my mem

Re: a little more help with python server-side scripting

2006-02-23 Thread Paul Boddie
John Salerno wrote: > John Salerno wrote: > > > Unfortunately, I don't completely understand what it is I need to do > > now. Where do I put the path they mentioned? And what do they mean by my > > script path? > > Ok, seems like the verdict is that the server doesn't have mod_python > nor does it

Re: a little more help with python server-side scripting

2006-02-23 Thread John Salerno
John Salerno wrote: > Unfortunately, I don't completely understand what it is I need to do > now. Where do I put the path they mentioned? And what do they mean by my > script path? Ok, seems like the verdict is that the server doesn't have mod_python nor does it detect the .psp extension. It c

Re: a little more help with python server-side scripting

2006-02-23 Thread Magnus Lycka
John Salerno wrote: > After a little more investigation, this seems to be just one > implementation of PSP. I need to just figure out how to get 'regular' > PSP working for me, or if it's even possible on a Windows 2003 server. I don't think there is such a thing as "regular PSP". If they've ena

Re: a little more help with python server-side scripting

2006-02-23 Thread John Salerno
Sybren Stuvel wrote: > I wouldn't know, never used Python ;-) So far, me neither. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: a little more help with python server-side scripting

2006-02-23 Thread Sybren Stuvel
John Salerno enlightened us with: > That sounds like just what I want, except do I have to write my code > in Jython? Can't I just use regular Python? I wouldn't know, never used Python ;-) Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stu

Re: a little more help with python server-side scripting

2006-02-23 Thread John Salerno
John Salerno wrote: > Sybren Stuvel wrote: > >> Check out PSP. > > I found a PSP website that said this: > > - > In general, PSP pages are like normal HTML files with two exceptions: > > 1. They always have a .PSP file extension > 2. They can have JPython code embedded in them > ---

Re: a little more help with python server-side scripting

2006-02-23 Thread John Salerno
Sybren Stuvel wrote: > Check out PSP. I found a PSP website that said this: - In general, PSP pages are like normal HTML files with two exceptions: 1. They always have a .PSP file extension 2. They can have JPython code embedded in them - That sounds like just what I want, exce

Re: a little more help with python server-side scripting

2006-02-23 Thread Magnus Lycka
John Salerno wrote: > The python installation on our windows hosting is not configured as > mod_python. Perhaps you can switch to linux hosting instead? If they have mod_python in that environment, you can use Python Server Pages, and whatever tools you use, there is much better support for Apac

Re: a little more help with python server-side scripting

2006-02-23 Thread Magnus Lycka
Dennis Lee Bieber wrote: > On Wed, 22 Feb 2006 20:43:38 GMT, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >>Does that answer the question about active scripting language? > > > Slipping in... It sure sounds to me like they have Python as a pure > CGI

Re: a little more help with python server-side scripting

2006-02-22 Thread John Salerno
Steve Holden wrote: > OK, what you need to ask them is whether they have installed Python as > an Active Scripting language. If they have then you can use it pretty > much like VBscript. Here's there latest: -- Please note that it is possible for the server to recognize bits of Python

Re: a little more help with python server-side scripting

2006-02-22 Thread Steve Holden
John Salerno wrote: > John Salerno wrote: > >>I contacted my domain host about how Python is implemented on their >>server, and got this response: > > > Uh, okay, I asked a related question to them and now I got this: > > > Hello John, > > There are some corrections based on last

Re: a little more help with python server-side scripting

2006-02-22 Thread Sybren Stuvel
John Salerno enlightened us with: > What I had asked was if I could just embed Python code within my > HTML files, like you do with PHP, but they didn't address that yet. Check out PSP. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidi

Re: a little more help with python server-side scripting

2006-02-22 Thread John Salerno
John Salerno wrote: > I contacted my domain host about how Python is implemented on their > server, and got this response: Uh, okay, I asked a related question to them and now I got this: Hello John, There are some corrections based on last reply. The python installation on our wi

Re: a little more help with python server-side scripting

2006-02-22 Thread John Salerno
Steve Holden wrote: > Note that purists might suggest this isn't the best way to use Python on > the web. If it gets you where you want to be, feel free to ignore them :-) Thanks for the info. Basically I don't plan to do big stuff with Python on the internet (at least not right now while I'm s

Re: a little more help with python server-side scripting

2006-02-21 Thread Steve Holden
John Salerno wrote: > Steve Holden wrote: > > >>If the script ran, you will now know waht version of Apaceh you're >>running with! > > > Well, the script did seem to run, but I'm still not sure if this is what > I'm ultimately after. This allows me to run Python script files, which > is good

Re: a little more help with python server-side scripting

2006-02-21 Thread John Salerno
Steve Holden wrote: > If the script ran, you will now know waht version of Apaceh you're > running with! Well, the script did seem to run, but I'm still not sure if this is what I'm ultimately after. This allows me to run Python script files, which is good, but what I really want to do is writ

Re: a little more help with python server-side scripting

2006-02-21 Thread John Salerno
Steve Holden wrote: >> Where does this line go? Just at the top as well? > > Nope. I presume you can log in to your web server using ssh or telnet or > similar. In which case you do so. Then use the commands > > cd {wherever}/cgi-bin > chmod +x test.py > > to make the script executable, and th

Re: a little more help with python server-side scripting

2006-02-21 Thread Steve Holden
John Salerno wrote: > Steve Holden wrote: > > >>Fortunately they've given you the information you need to run CGI >>scripts. Try installing this script in your cgi-bin directory as test.py >>(you may have to set it executable): > > > Thank you! I desperately needed to test it, and that seemed

Re: a little more help with python server-side scripting

2006-02-21 Thread Steve Holden
John Salerno wrote: > Ben Cartwright wrote: > > >>>The script can be given a executable mode, or permission, using the >>>chmod command: >>> >>> $ chmod +x myscript.py >> >>And this answers your second. Your host needs to know the path to your >>script so they can use chmod to make it executabl

Re: a little more help with python server-side scripting

2006-02-21 Thread John Salerno
Steve Holden wrote: > Fortunately they've given you the information you need to run CGI > scripts. Try installing this script in your cgi-bin directory as test.py > (you may have to set it executable): Thank you! I desperately needed to test it, and that seemed to work. I didn't have to make it

Re: a little more help with python server-side scripting

2006-02-21 Thread John Salerno
Ben Cartwright wrote: >> The script can be given a executable mode, or permission, using the >> chmod command: >> >> $ chmod +x myscript.py > > And this answers your second. Your host needs to know the path to your > script so they can use chmod to make it executable. Where does this line go?

Re: a little more help with python server-side scripting

2006-02-21 Thread Steve Holden
John Salerno wrote: > I contacted my domain host about how Python is implemented on their > server, and got this response: > > --- > Hello John, > > Please be informed that the implementation of python in our server is > through mod_python integration with the apache. > > These

Re: a little more help with python server-side scripting

2006-02-21 Thread Ben Cartwright
John Salerno wrote: > I contacted my domain host about how Python is implemented on their > server, and got this response: > > --- > Hello John, > > Please be informed that the implementation of python in our server is > through mod_python integration with the apache. > > These are

a little more help with python server-side scripting

2006-02-21 Thread John Salerno
I contacted my domain host about how Python is implemented on their server, and got this response: --- Hello John, Please be informed that the implementation of python in our server is through mod_python integration with the apache. These are the steps needed for you to be able