[Tutor] python for web developing

2006-09-13 Thread federico ramirez
Hello! I have heard that python is very good for web development, but you need frameworks, like django or turbogears.I know that you dont really need them, you can just write cgi scripts with python...butIm a php programmer, and i want to make another dinamic site with sql, in python, but i need sq

[Tutor] show all dbm data

2006-09-14 Thread federico ramirez
Hi, im have just started programming python with cgi and i will try to use dbm as a db to practiseBut i cant figure out how to diplay all the data from it..this is the code im using/#!/usr/bin/python print "Content-Type: text/html\n\n"import cgi, dbmdef startpage(title):    print ''' ht

[Tutor] arrays

2006-09-14 Thread federico ramirez
Hi all! Im started with python some days ago, im trying to make a basic cgi script, with dbm, and dbm returns a dictionary witout order, so i put it in an array to order the keys and then display it in order but..python orders the array like this ['_1', '_10', '_11', '_12', '_13', '_2', '_3', '_4'

[Tutor] Cookie help

2006-09-16 Thread federico ramirez
Hey, im working on a cgi script, just a simple news system.And im stucked with the login system.GOD! I hate being a noob!Well, this is the login page#!/usr/bin/python import cgi, dbm, string, Cookieimport configrequest = cgi.FieldStorage()def loginform():    print ''

[Tutor] i just cant do it

2006-09-17 Thread federico ramirez
well, im very angry :(I cant get this to workWhen i try this it works#!/usr/bin/pythonimport CookieC = Cookie.SimpleCookie()C['adminuser'] = 'fedekiller'C['adminuser']['max-age'] = 60*60*24*7 print Cprint "Content-Type: text/html\n\n"print "Bienvenido",C['adminuser'].value,'!'but when i try this it

[Tutor] pygame rpg

2006-11-09 Thread federico ramirez
Hi! im trying to make a rpg game with pygame, of ocurse i will first to try make simpler games, anyways, i could not find any good tutorial, example, article, not anything about making a rpg with pygame and the documentations is pretty poor... only some tutorials Well, i was wondering is someone ca