Re: [Tutor] class accessing another's updated property

2007-11-15 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote > > class Master: > > class PublishedMaster(Master): > > class client: > > This allows the subscriber classes to be informed of any changes I should have pointed out that the code I posted was not tested and should be treated as pseudo code - albeit very

Re: [Tutor] class accessing another's updated property

2007-11-15 Thread Alan Gauld
"ted b" <[EMAIL PROTECTED]> wrote >I want class One to be able to access access class > Two's value property after its been updated. Everytime > I try (by running, say testTwo().value) I get the > __init__ value. Others have explained that you need to use instances or class attributes. I'll tack

Re: [Tutor] class accessing another's updated property

2007-11-15 Thread Yoram Hekma
On Wed, Nov 14, 2007 at 04:43:28AM -0800, ted b wrote: > I want class One to be able to access access class > Two's value property after its been updated. Everytime > I try (by running, say testTwo().value) I get the > __init__ value. The update method fro class Two is > called elsewhere in the pro

Re: [Tutor] class accessing another's updated property

2007-11-14 Thread Kent Johnson
ted b wrote: > I want class One to be able to access access class > Two's value property after its been updated. Everytime > I try (by running, say testTwo().value) I get the > __init__ value. The update method fro class Two is > called elsewhere in the program, and I want class > One's "getTwo" me

[Tutor] class accessing another's updated property

2007-11-14 Thread ted b
I want class One to be able to access access class Two's value property after its been updated. Everytime I try (by running, say testTwo().value) I get the __init__ value. The update method fro class Two is called elsewhere in the program, and I want class One's "getTwo" method to access class Two'