Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 6:21 AM Jerry Thefilmmaker wrote: > @app.route("/check_answer/", methods = ['POST']) > def check_answer(ans): > > > Enter your answer: > > What you're creating here is a route with a placeholder. The check_answer

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Tuesday, June 29, 2021 at 2:03:58 PM UTC-4, Chris Angelico wrote: > On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker > wrote: > > Thanks for taking the time to explained, Chris. Believe me, it helps. It > > had me thinking for a while. So, All the stuff about HTTP makes sense. I've > > be

Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker wrote: > Thanks for taking the time to explained, Chris. Believe me, it helps. It had > me thinking for a while. So, All the stuff about HTTP makes sense. I've been > studying and trying to wrap my head around the rest of your explanation and

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 3:59:54 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker > wrote: > > > > Do you mind elaborating a bit more on making one function for any given > > request? > > > > As far as defining a bunch of functions that get called when

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker wrote: > > Do you mind elaborating a bit more on making one function for any given > request? > > As far as defining a bunch of functions that get called when particular > requests come in I thought that's what I had going on in my codes. No? >

Re: python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 2:41:23 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker > wrote: > > @app.route("/", methods = ['POST', 'GET']) > > def play(): > > > > @app.route("/", methods = ['POST', 'GET']) > > def check_answer(ans, user): > When you're bu

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker wrote: > @app.route("/", methods = ['POST', 'GET']) > def play(): > > @app.route("/", methods = ['POST', 'GET']) > def check_answer(ans, user): When you're building a Flask app, you're defining a bunch of functions that get called when particular

python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
I am new at python but newer at flask, and I'm trying to deploy a web app where I: 1. Send the user the question 2. Get the answer from the user 3. Send additional information based on the answer I am able to send the question but stuck at getting the answer from the user. Base on the answer fro

Re: python server socket file transfer

2018-01-10 Thread dieter
bingbong3...@gmail.com writes: > On Wednesday, January 10, 2018 at 9:07:33 AM UTC+2, dieter wrote: >> bingbong3...@gmail.com writes: >> > how much client can i handel whit this code what the amount of client that >> > i can handel >> > the size of the file is 716 kb >> > ... >> > self.sock.send(l

Re: python server socket file transfer

2018-01-10 Thread bingbong3334
On Wednesday, January 10, 2018 at 9:07:33 AM UTC+2, dieter wrote: > bingbong3...@gmail.com writes: > > how much client can i handel whit this code what the amount of client that > > i can handel > > the size of the file is 716 kb > > ... > > self.sock.send(l) > > Please read the documentation for

Re: python server socket file transfer

2018-01-09 Thread dieter
bingbong3...@gmail.com writes: > how much client can i handel whit this code what the amount of client that i > can handel > the size of the file is 716 kb > ... > self.sock.send(l) Please read the documentation for *send* in the "socket" module: it tells you that "send" (in contrast to "sendall"

python server socket file transfer

2018-01-09 Thread bingbong3334
how much client can i handel whit this code what the amount of client that i can handel the size of the file is 716 kb import socket from threading import Thread from SocketServer import ThreadingMixIn ## TCP_IP = '' TCP_PORT = 3156 BUFFER_SIZE = 1024 class ClientThread(Thread): def __init__(

Re: configuration setting for python server

2010-06-15 Thread David Zaslavsky
On Monday 14 June 2010 11:29:35 pm shanti bhushan wrote: > do we have some configuration file for python server?? No. As people have explained in reply to your other messages, Python's BaseHTTPServer does not use any configuration files. If you want a web server which uses a configurat

Re: configuration setting for python server

2010-06-14 Thread Stephen Hansen
On 6/14/10 8:30 PM, shanti bhushan wrote: > On Jun 15, 5:53 am, David Zaslavsky wrote: >> On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update >> the configuration file for python server ,but i am >>> not able to locate the python configuration fil

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky wrote: > On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the > configuration file for python server ,but i am > > not able to locate the python configuration file. > > What configuration file? I don't see

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky wrote: > On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the > configuration file for python server ,but i am > > not able to locate the python configuration file. > > What configuration file? I don't see

Re: configuration setting for python server

2010-06-14 Thread David Zaslavsky
On Monday 14 June 2010 6:19:33 am shanti bhushan wrote: > I want to update the configuration file for python server ,but i am > not able to locate the python configuration file. What configuration file? I don't see anything in your code that reads a configuration file. :) Dav

configuration setting for python server

2010-06-14 Thread shanti bhushan
I want to update the configuration file for python server ,but i am not able to locate the python configuration file. Please guide me in this respect. I am using a python web server This is the code for it --- import string,cgi,time from os

Re: python server developer

2009-11-21 Thread garabik-news-2005-05
Bobby wrote: > Hello, > We are looking for Python server developer > location : Hyderabad > Experience : 3 years . > Send me your updated resume with availability for Telephonic interview Hyderabad, India or Hyderabad, Pakistan? (no, I am not going to apply in either case, even

python server developer

2009-11-21 Thread Bobby
Hello, We are looking for Python server developer location : Hyderabad Experience : 3 years . Send me your updated resume with availability for Telephonic interview -- http://mail.python.org/mailman/listinfo/python-list

Re: Python server locks up

2009-09-14 Thread M.-A. Lemburg
Zac Burns wrote: > I have a server running Python 2.6x64 which after running for about a > month decides to lock up and become unresponsive to all threads for > several minutes at a time. While it is locked up Python proceeds to > consume large amounts of continually increasing memory. > > The bas

Re: Python server locks up

2009-09-11 Thread Dave Angel
Paul Rubin wrote: sturlamolden writes: Python uses reference counting, not a generational GC like Java. A Python object is destroyed when the refcount drops to 0. The GC only collects cyclic references. If you create none, there are no GC delays (you can in fact safely turn the GC off). Pyt

Re: Python server locks up

2009-09-11 Thread Terry Reedy
sturlamolden wrote: On 9 Sep, 22:28, Zac Burns wrote: Theories: Python is resizing the large dictionary Python is garbage collecting Python uses reference counting, not a generational GC like Java. The CPython implementation, that is. Jython, built on top of Java, uses Java's GC. D

Re: Python server locks up

2009-09-11 Thread Paul Rubin
sturlamolden writes: > Python uses reference counting, not a generational GC like Java. A > Python object is destroyed when the refcount drops to 0. The GC only > collects cyclic references. If you create none, there are no GC delays > (you can in fact safely turn the GC off). Python does not sha

Re: Python server locks up

2009-09-11 Thread sturlamolden
On 9 Sep, 22:28, Zac Burns wrote: > Theories: >    Python is resizing the large dictionary >    Python is garbage collecting Python uses reference counting, not a generational GC like Java. A Python object is destroyed when the refcount drops to 0. The GC only collects cyclic references. If you

Re: Python server locks up

2009-09-10 Thread Zac Burns
On Wed, Sep 9, 2009 at 6:52 PM, David Stanek wrote: > On Wed, Sep 9, 2009 at 4:28 PM, Zac Burns wrote: >> >> How would you suggest to figure out what is the problem? >> > > I don't think you said your OS so I'll assume Linux. > > Sometimes it is more noise than value, but stracing the process may

Re: Python server locks up

2009-09-09 Thread David Stanek
On Wed, Sep 9, 2009 at 4:28 PM, Zac Burns wrote: > > How would you suggest to figure out what is the problem? > I don't think you said your OS so I'll assume Linux. Sometimes it is more noise than value, but stracing the process may shed light on what system calls are being made. This in turn may

Re: Python server locks up

2009-09-09 Thread Zac Burns
> If it has been running continuously all that time then it might be that > the dictionary has grown too big (is that possible?) or that it's a > memory fragmentation problem. In the latter case it might be an idea to > restart Python every so often; perhaps it could do that automatically > during

Re: Python server locks up

2009-09-09 Thread MRAB
Zac Burns wrote: I have a server running Python 2.6x64 which after running for about a month decides to lock up and become unresponsive to all threads for several minutes at a time. While it is locked up Python proceeds to consume large amounts of continually increasing memory. The basic functio

Python server locks up

2009-09-09 Thread Zac Burns
I have a server running Python 2.6x64 which after running for about a month decides to lock up and become unresponsive to all threads for several minutes at a time. While it is locked up Python proceeds to consume large amounts of continually increasing memory. The basic function of the server is

Re: XMLRPC - C Client / Python Server

2008-10-01 Thread Chris Rebert
On Wed, Oct 1, 2008 at 1:05 AM, <[EMAIL PROTECTED]> wrote: > On 30 Sep, 21:58, Michael Torrie <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > I have implemented a simple Python XMLRPC server and need to call it >> > from a C/C++ client. What is the simplest way to do this? I need to >>

Re: XMLRPC - C Client / Python Server

2008-10-01 Thread care02
On 30 Sep, 21:58, Michael Torrie <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I have implemented a simple Python XMLRPC server and need to call it > > from a C/C++ client. What is the simplest way to do this? I need to > > pass numerical arrays from C/C++ to Python. > > Which do you ne

Re: XMLRPC - C Client / Python Server

2008-09-30 Thread Michael Torrie
[EMAIL PROTECTED] wrote: > I have implemented a simple Python XMLRPC server and need to call it > from a C/C++ client. What is the simplest way to do this? I need to > pass numerical arrays from C/C++ to Python. Which do you need, C or C++? They are two different languages with different possibil

Re: XMLRPC - C Client / Python Server

2008-09-30 Thread Chris Rebert
On Tue, Sep 30, 2008 at 8:05 AM, <[EMAIL PROTECTED]> wrote: > I have implemented a simple Python XMLRPC server and need to call it > from a C/C++ client. What is the simplest way to do this? I need to > pass numerical arrays from C/C++ to Python. If you just googled for "xmlrpc c", you would've f

XMLRPC - C Client / Python Server

2008-09-30 Thread care02
I have implemented a simple Python XMLRPC server and need to call it from a C/C++ client. What is the simplest way to do this? I need to pass numerical arrays from C/C++ to Python. Yours, Carl -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread barun . saha04
On Jul 23, 6:18 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jul 22, 1:54 pm, [EMAIL PROTECTED] wrote: > > > > > On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > > > I am facing a very basic problem

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread Graham Dumpleton
On Jul 22, 1:54 pm, [EMAIL PROTECTED] wrote: > On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I am facing a very basic problem with PSP. I have installedmod_python > > > (in fedora Core 1), added the lines

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread barun . saha04
On Jul 22, 5:36 pm, "Sebastian \"lunar\" Wiesner" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Hi, > > > I am facing a very basic problem with PSP. I have installed mod_python > > (in fedora Core 1), added the lines required for loading Python > > modules and handling P

Re: Problem with Python Server Pages (PSP)

2008-07-22 Thread Sebastian "lunar" Wiesner
[EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi, > > I am facing a very basic problem with PSP. I have installed mod_python > (in fedora Core 1), added the lines required for loading Python > modules and handling PSP pages. I have created a hello.psp page. But > when I try to view this hello.psp page

Re: Problem with Python Server Pages (PSP)

2008-07-21 Thread barun . saha04
On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > > > > > > > Hi, > > > I am facing a very basic problem with PSP. I have installedmod_python > > (in fedora Core 1), added the lines required for loading Python > > modules and handling P

Re: Problem with Python Server Pages (PSP)

2008-07-21 Thread Graham Dumpleton
On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote: > Hi, > > I am facing a very basic problem with PSP. I have installedmod_python > (in fedora Core 1), added the lines required for loading Python > modules and handling PSP pages. I have created a hello.psp page. But > when I try to view this hello.psp p

Problem with Python Server Pages (PSP)

2008-07-21 Thread barun . saha04
Hi, I am facing a very basic problem with PSP. I have installed mod_python (in fedora Core 1), added the lines required for loading Python modules and handling PSP pages. I have created a hello.psp page. But when I try to view this hello.psp page, all Python code are getting displayed. The said p

python server side scripting with apache2

2008-04-18 Thread syed mehdi
Hi Guys, I want to do server side scripting in python for one of my applications. So after installing apache2, python lib for apache2 (libapache2), and doing some changes in default file in /etc/apache2/sites-available i was able to execute python scripts in /var/www/ directory from client side

Re: How to import custom python file in python server page (psp) ?

2008-03-14 Thread Graham Dumpleton
On Mar 15, 6:44 am, Joshua Kugler <[EMAIL PROTECTED]> wrote: > James Yu wrote: > > Hi folks, > > > I prepared a python script for dynamically get the absolute paths of the > > files in certain folder. > > Then I tried to invoke that function from my web server in a .psp file > > like this: > > >  

Re: How to import custom python file in python server page (psp) ?

2008-03-14 Thread Joshua Kugler
James Yu wrote: > Hi folks, > > I prepared a python script for dynamically get the absolute paths of the > files in certain folder. > Then I tried to invoke that function from my web server in a .psp file > like this: > > 1 > 2 > 3 asdfasdfasdfa > 4 > 5 <% >

How to import custom python file in python server page (psp) ?

2008-03-14 Thread James Yu
Hi folks, I prepared a python script for dynamically get the absolute paths of the files in certain folder. Then I tried to invoke that function from my web server in a .psp file like this: 1 2 3 asdfasdfasdfa 4 5 <% 6 import glob 7 import os 8 *

Python server j2me client ssl socket handshake error

2007-11-16 Thread eliseo
Hello, I want to make the same application : python Serveur and J2me Client whit ssl socket. I would like to know if you have solved the problem? Can you show me the final version of python server code and the J2ME client code, so that I can make my application with your help. Thanks Best

Xinetd & python server script. problem to get data from from client

2007-07-30 Thread ilia . meerovich
Hello I wrote simple script to test communication: When i connect via telnet like: "telnet localhost 51423" the server is working send and receive information. but when i connected to him via client scrip so client script receive messages from server but server doesn't receive message from client.

Python server j2me client ssl socket handshake error

2006-07-31 Thread karzem
I try to write simple midlet in java to connect with my server which monitors processes in my PC. I've written almost everything and now I've spend 4 days trying to set up a connection between them. Without ssl everything works fine. Here is my fragment of server program: def verify_cb(conn, cert,

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 suppo

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
clude statement. What would the > equivalent of this be in Python: > > > > Thanks. There are various ways you can do this, each of which depends on having a particular framework in place. Since your web service provider tells you that mod_python is available it's likely

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

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thee are many solutions. An XML-RPC server springs to mind as a > solution. There are several Python XML-RPC servers . Good Idea. Seems that those particular batteries are included with Python 2.2 and up: OP: See h

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"linuxpld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with

Re: python server

2005-11-08 Thread Magnus Lycka
linuxpld wrote: > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with it. > are there any libraries that I could use? Thee are many sol

Re: python server

2005-11-07 Thread Bill Mill
On 7 Nov 2005 10:22:18 -0800, linuxpld <[EMAIL PROTECTED]> wrote: > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with it. >

python server

2005-11-07 Thread linuxpld
Hello I`m writing a program (server in future) in python. I would like to write it in such a way that I will be able to write gui in any language and connect to my python program and use functionality included with it. are there any libraries that I could use? I dont know if i wrote it understand

Re: python server?

2005-10-12 Thread Diez B. Roggisch
> I was wondering if something similar already existed, to use as-is or > to adapt to my needs. > I did a little googling, which pointed me to interesting, but rather > different projects. Has anybody ever seen or heard something of this > kind? Or maybe there is something almost-ready in the amazi

python server?

2005-10-11 Thread Francesco Marchetti-Stasi
Hello everybody, I am the happy yet unsatisfied owner of an ipaq 3760. I am writing a python+pygtk editor optimized for an handheld, and in the future I'd like to write more applications (to-do-list and agenda are on top of my priorities, since the existing ones don't fit my needs). I was now thi

Re: Free python server.

2005-01-14 Thread Robin Becker
[EMAIL PROTECTED] wrote: Your file probably need to (a) be in the cgi-bin, not public_html, (b) be flagged executable ("chmod a+x file.py"), and (c) begin with the line: '#!/usr/bin/env python' If the server doesn't provide you with CGI (or, strongly preferable, SCGI or mod_python), you're probably

Re: Free python server.

2005-01-14 Thread rootshell
> Your file probably need to (a) be in the cgi-bin, not public_html, (b) > be flagged executable ("chmod a+x file.py"), and (c) begin with the > line: '#!/usr/bin/env python' > > If the server doesn't provide you with CGI (or, strongly preferable, > SCGI or mod_python), you're probably out of luck.

Re: Free python server.

2005-01-13 Thread Craig Ringer
On Thu, 2005-01-13 at 19:07 +0100, [EMAIL PROTECTED] wrote: > Thank you very much. > Arbornet.org seems to be ok > Unforutnately I was convinced that I only have to only copy my *.py file to > /public_hml directory and everything will be all right. Your file probably need to (a) be in the cgi-bin

Re: Free python server.

2005-01-13 Thread Reinhold Birkenfeld
Kartic wrote: > And yes, they have python installed... Python 2.1! Reinhold -- http://mail.python.org/mailman/listinfo/python-list

Re: Free python server.

2005-01-13 Thread rootshell
Thank you very much. Arbornet.org seems to be ok Unforutnately I was convinced that I only have to only copy my *.py file to /public_hml directory and everything will be all right. As you expect I was wrong. R. -- http://mail.python.org/mailman/listinfo/python-list

Re: Free python server.

2005-01-13 Thread Kartic
And yes, they have python installed... -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >