Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Python
Google
Post new topic Reply to topic
Author Message
Compman
 
 


Joined: 27 May 2006
Posts: 1

PostPosted: Sat May 27, 2006 11:50 am Reply with quoteBack to top

Hi,
I am all very new to this. I want to be able to run my Python scripts from localhost to check them before I use them.

My first script is this.

def index():
return """<HTML><BODY>
<FORM ACTION=Task>
Enter N: <INPUT TYPE=TEXT NAME=AEdit><BR>
<INPUT TYPE=SUBMIT VALUE=Calc>
</FORM></BODY></HTML>"""

def Task(AEdit):
n = int(AEdit)
res = 0
for i in range(1,n+1):
if i%2==0:
res=res+1
return """<HTML><BODY>
Number of even numbers in the range is %s
</BODY></HTML>""" % (res)

How do I get it to run. I think I need mod_python publisher installed.
How do I do that.

Thanks in advance for any help.
View user's profileSend private message
Vlad Alexa Mancini
lead developer
lead developer


Joined: 07 Jul 2003
Posts: 1539

PostPosted: Fri Jun 02, 2006 6:03 pm Reply with quoteBack to top

publisher is part of mod_python which is installed , enable it , use the coresponding test scripts in the cp for testing and example
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT