[Tutor] client server apps

2007-08-26 Thread paulino1
Hi! What's the point in having a server app between the user frontend and a database backend? (As is the case of TinyERP wich is writen in python-GTK) Can't simillar functionality be achieved without that server? What are the main pro's and con's? Thank you! Paulino

[Tutor] exec sintax error or bug?

2007-09-27 Thread paulino1
Hello! Why doesn't the second code snipet, work like the first? >>> for i in range(5): ...if i == 3 : continue ...print i, ... 0 1 2 4 >>> exp = "if i == 3 : continue" >>> for i in range(5): ...exec( exp ) ...print i, ... Traceback (most recent call last): File "", line 2, in

Re: [Tutor] exec sintax error or bug?

2007-09-27 Thread paulino1
Citando Ian Witham <[EMAIL PROTECTED]>: > What version of Python arre you running Paulino? > > When I run your second snippet on 2.5 I get an error: > > >>> exp = "if i == 3 : continue" > >>> for i in range(5): > exec(exp) > print i, > > Traceback (most recent call last): >

[Tutor] python intall error

2006-09-21 Thread paulino1
When trying to install python in windows I get this error message: "The installer encoutered an unexpected error, installing this package. This may indicate a problem with this package. The error code is 2356" I've found this error both with python-2.4.3.msi and python-2.5.msi in diferent machines

Re: [Tutor] Exception and sys.exit() in a cgi script

2006-10-24 Thread paulino1
I was wrong! Now it works fine! Thank you! I have another similar script where the print HTTP headers statement is in a previous line... In this one it is not the case. Sorry for my inconvenience! Paulino Citando wesley chun <[EMAIL PROTECTED]>: > > > >> > > paulino, > > mike and michael are

Re: [Tutor] New to programming and Python (Jorge Azedo)

2006-10-26 Thread paulino1
Parece que ja temos elementos para estabelecer uma comunidade portuguesa de Python ;-) Jorge, Sugiro os tutoriais do site www.devshed.com. são simples e explicam bem o significado do codigo! Tb sou novo na programação, tenho ai 6 meses de Python. A Caixa Magica promove cursos de Python em Lisbo

[Tutor] cgi form field and popup window

2006-10-26 Thread paulino1
I would like to have a popup window to show the possible options to a form field (supplier ID) and that by clicking on the desired item, the field is automatically filled. The options are a database field values. I wonder if this is possible to do with python (point me some resources please), or h

[Tutor] Please comment my script

2006-11-13 Thread paulino1
This is a script I have at work, it is running fine (gives the output I want). Any comments are very welcome. It queries a database and gives out a reportlab pdf file with a balance sheet of costs per department. In the first version there were neither functions nor classes, it worked as well, bu

[Tutor] sleep command in python?

2006-11-14 Thread paulino1
Is there a "sleep" command in python like the bash's sleep? ___ O SAPO já está livre de vírus com a Panda Software, fique você também! Clique em: http://antivirus.sapo.pt ___ Tutor maillist

[Tutor] CGI script: get the client user

2007-01-10 Thread paulino1
I have some python CGI scripts running in an intranet. I would like to get the user of the client browser to use it as an input in the script, so it can show the the data related to that user. There is the function getpass.getuser() that would return the user logged in the server. Is it possible

[Tutor] howto filter access to a cgi script

2007-02-28 Thread paulino1
Hi! I have some python CGI scripts in an intranet, in a windows network, I would like to restrict the access to some of those scripts to a list of computers in the domain. How? Thanks, Paulino ___ Tutor maillist - Tutor@python.org http://mail.pyt