[PyPerSyst-Devel] semi-related patch
Brought to you by:
pobrien
|
From: Matthew S. <gld...@us...> - 2004-06-25 21:37:29
|
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()
|