Re: Over my head with descriptors

2006-12-18 Thread Sarcastic Zombie
> > Is there a reason you don't just use __init__ instead of __new__, and use > > "self.age" and "self.weight" and so on?I was asking myself the same thing... > > Chris "A lack of understanding," he answered sheepishly. There are attributes (ie, question._qtext) that I do want to be the same for

Re: Over my head with descriptors

2006-12-16 Thread Christian Kastner
Tim Roberts wrote: > "Sarcastic Zombie" <[EMAIL PROTECTED]> wrote: >> Code included below. >> >> Basically, I've created a series of "question" descriptors, which each >> hold a managed value. This is so I can implement validation, and render >> each field into html automatically for forms. >> >> M

Re: Over my head with descriptors

2006-12-16 Thread Christian Kastner
Sarcastic Zombie wrote: > Code included below. > > Basically, I've created a series of "question" descriptors, which each > hold a managed value. This is so I can implement validation, and render > each field into html automatically for forms. > > My problem is this: every instance of my "wizard"

Re: Over my head with descriptors

2006-12-15 Thread Tim Roberts
"Sarcastic Zombie" <[EMAIL PROTECTED]> wrote: > >Code included below. > >Basically, I've created a series of "question" descriptors, which each >hold a managed value. This is so I can implement validation, and render >each field into html automatically for forms. > >My problem is this: every instan

Over my head with descriptors

2006-12-14 Thread Sarcastic Zombie
Code included below. Basically, I've created a series of "question" descriptors, which each hold a managed value. This is so I can implement validation, and render each field into html automatically for forms. My problem is this: every instance of my "wizard" class has unique self values, but the