Re: [PyPerSyst-Devel] semi-related patch
Brought to you by:
pobrien
|
From: <po...@or...> - 2004-06-25 22:20:41
|
Matthew Scott <gld...@us...> writes: > After I took this out since unit tests passed for both PyPerSyst and > the app using it, I remembered why I put it in -- it's so that the > extent-aware Grid/Table classes know how to pretty up column headings > :) > > > > Index: extent.py > =================================================================== > RCS file: /cvsroot/pypersyst/pypersyst/pypersyst/entity/extent.py,v > retrieving revision 1.29 > diff -a -u -r1.29 extent.py > --- extent.py 19 Jun 2004 21:29:39 -0000 1.29 > +++ extent.py 25 Jun 2004 21:34:50 -0000 > @@ -325,6 +325,8 @@ > """Synchronize with the current EntityClass definition.""" > self._attrSpec = EntityClass._attrSpec[:] > self._altkeySpec = EntityClass._altkeySpec[:] > + if hasattr(EntityClass, '_fieldSpec'): > + self._fieldSpec = EntityClass._fieldSpec.copy() > self._forClassName = EntityClass.__name__ > self._refreshkeys() > self._refreshlinks() I checked this in. I was kind of holding off on all the field-related stuff until I had time to really give them the attention they need. But this change looks pretty reasonable and would likely stay no matter what happens to fields, so it's in. Thanks. -- Patrick K. O'Brien Orbtech http://www.orbtech.com Blog http://www.sum-ergo-cogito.com |