Re: Dictonary persistance weirdness

2005-04-10 Thread Gonzalo Sainz-Trápaga (GomoX)
Hi John, Thanks for your reply, I was feeling pretty desperate already with no one talking to me :( On Mon, 11 Apr 2005 11:46:20 +1000, John Machin wrote: > Are you sure that is the code that you are executing? What is "x"? What is > "self.d"? "each" is not used. Even if "x" and "self.d" do exist,

Re: Dictonary persistance weirdness

2005-04-10 Thread John Machin
On Sun, 10 Apr 2005 19:07:23 -0300, Gonzalo Sainz-Trápaga (GomoX) <[EMAIL PROTECTED]> wrote: >def get_vars(): >d = {} >for each in self.fs.list: >self.d[x.name] = x.value >return d > ... and didn't you mean def get_vars(self): ? -- http://mail.pyth

Re: Dictonary persistance weirdness

2005-04-10 Thread John Machin
On Sun, 10 Apr 2005 19:07:23 -0300, Gonzalo Sainz-Trápaga (GomoX) <[EMAIL PROTECTED]> wrote: >-- wrappers.py - >class VarsWrapper: >def __init__(self,req): >self.fs = util.FieldStorage(req) > >def get_vars(): >d = {} >for each in self.fs.list