Re: Does a function like isset() exist in Python?

2005-06-22 Thread Esben Pedersen
Patrick Fitzsimmons wrote: > Hi, > > I'm sure I should know this, but I can't find it in the manual. > > Is there a function in Python like the function in PHP isset()? It > should take a variable name and return True or False depending on > whether the variable is initialized. > > Thanks for a

Re: Pressing A Webpage Button

2005-06-03 Thread Esben Pedersen
J Correia wrote: > "Elliot Temple" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>How do I make Python press a button on a webpage? I looked at >>urllib, but I only see how to open a URL with that. I searched >>google but no luck. >> >>For example, google has a button how

Re: How do you convert a string obj to a file obj?

2005-05-04 Thread Esben Pedersen
Matthew Thorley wrote: > I'm writing a web app whereby a user uploads a tar acrhive which is then > opened and processed. My web form reads the file like this: > > while 1: > data = value.file.read(1024 * 8) # Read blocks of 8KB at a time > if not data: break > > which leaves me with data

Re: New line

2005-04-21 Thread Esben Pedersen
ionic wrote: Ok sorry guys, using the python gui, if i hit the 'enter' key python just executes what ever ive typed. It doesnt take me to the next line. try shift + enter /Esben -- http://mail.python.org/mailman/listinfo/python-list

Re: Persistent python object and the Web

2005-04-21 Thread Esben Pedersen
[EMAIL PROTECTED] wrote: My problem is that I don't know how to create a graph_object that remains persistent through time (it has to be the same graph_object for One possibility is to have a remote procedure call server that stores the graph running seperately from your wab application. Your web

SimpleRPCServer

2005-03-25 Thread Esben Pedersen
I am trying to restrict some of the methods available by RPC to whether the user is connected through a ssh-tunnel eg. connecting from localhost. class UserRPC: '''Methods available to users''' pass class AdminRPC(UserRPC): '''Methods available only when connecting from localhost'''

Re: Save passwords in scripts

2005-03-21 Thread Esben Pedersen
Florian Lindner wrote: Hello, I've a scripts that allows limited manipulation of a database to users. This script of course needs to save a password for the database connection. The users, on the other hand need read permission on the script in order to execute it but should not be able to read out