[Webware-discuss] Cloning MiddleKit Objects

2005-08-02 Thread Seth Remington
Hello All, I have a need to clone instances of my MiddleKit objects and so far I have come up with this: def clone(donor): import copy dolly = copy.copy(donor) dolly.__dict__['_mk_initing'] = 1 dolly._mk_store = None dolly._mk_changedAttrs= None dolly._mk_ser

Re: [Webware-discuss] Cloning MiddleKit Objects

2005-08-02 Thread Chuck Esterbrook
On 8/2/05, Seth Remington <[EMAIL PROTECTED]> wrote: > Hello All, > > I have a need to clone instances of my MiddleKit objects and so far I > have come up with this: Seth, another developer needed this and enhanced MiddleKit.Run.MiddleObject by adding a clone() method. I recently had cause to use