[Zope-dev] ZPatterns bug with patch

Steve Alexander steve@cat-box.net
Mon, 28 Aug 2000 23:58:27 +0100


Steve Alexander wrote:
>  
> What rubbish! I didn't mean that at all!
> 
> I think what I meant was this:
> 
> try:
>     dm = self.__dict__[_v_dm_]
> except KeyError:
>     if name=='id':
>         if self.__dict__.has_key('id') and val==self.__dict__.['id']:
>             return
>         else:
>             self.__dict__['id']=val
>             return
>     raise

I think what I *really* meant was this:

try:
    dm = self.__dict__[_v_dm_]
except KeyError:
    if name=='id':
        if self.__dict__.has_key('id') and val==self.__dict__['id']:
            return
        else:
            self.__dict__['id']=val
            self._p_changed = 1
            return
    raise

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net