Re: How-to implement state pattern persisting it?

2007-10-28 Thread sserrano
Hi Malcolm Many thanks for your verbose answer, i have to think the way i will represent this. By the moment i don't have instance variables over the state objects, so i was thinking that i could store the state "name" and make a getter using something like a Factory. How much awful seem to you

Re: How-to implement state pattern persisting it?

2007-10-28 Thread [EMAIL PROTECTED]
Hi Malcolm In my design i have a class called publication, that behaves different depending on the "state", so i have an state hierarchy that implement via polymorphism the different ways the publication behaves. I have been reading the djangobook and searching the net, looking a way to

Re: How-to implement state pattern persisting it?

2007-10-28 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 20:18 +1100, Malcolm Tredinnick wrote: > On Sun, 2007-10-28 at 08:43 +, [EMAIL PROTECTED] wrote: > > Hi Malcolm > > In my design i have a class called publication, that behaves > > different depending on the "state", so i have an state hierarchy that > > implement via

Re: How-to implement state pattern persisting it?

2007-10-28 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 08:43 +, [EMAIL PROTECTED] wrote: > Hi Malcolm > In my design i have a class called publication, that behaves > different depending on the "state", so i have an state hierarchy that > implement via polymorphism the different ways the publication behaves. > I have

Re: How-to implement state pattern persisting it?

2007-10-28 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 07:09 +, [EMAIL PROTECTED] wrote: > Hi > If i'm not wrong the model inheritance is not complete. How you > turnaround this problem, when you had to implement the state pattern > or the strategy? > Any idea is welcome!! Could you perhaps ask your question using less

How-to implement state pattern persisting it?

2007-10-28 Thread [EMAIL PROTECTED]
Hi If i'm not wrong the model inheritance is not complete. How you turnaround this problem, when you had to implement the state pattern or the strategy? Any idea is welcome!! Thanks in advance!! Sebastián --~--~-~--~~~---~--~~ You received this message