[Pypersyst-cvs] pypersyst/pypersyst/entity entity.py,1.6,1.7
Brought to you by:
pobrien
From: <po...@us...> - 2003-08-28 17:59:37
|
Update of /cvsroot/pypersyst/pypersyst/pypersyst/entity In directory sc8-pr-cvs1:/tmp/cvs-serv17274 Modified Files: entity.py Log Message: Added public, read-only properties for attrs and links. Index: entity.py =================================================================== RCS file: /cvsroot/pypersyst/pypersyst/pypersyst/entity/entity.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** entity.py 27 Aug 2003 23:35:40 -0000 1.6 --- entity.py 28 Aug 2003 17:59:33 -0000 1.7 *************** *** 105,108 **** --- 105,110 ---- return d + attrs = property(fget=_attrs, doc=_attrs.__doc__) + def _check(self, attrs): """Return true if the attrs pass all validation checks.""" *************** *** 132,135 **** --- 134,139 ---- links = self.extent.links(self) return links + + links = property(fget=_links, doc=_links.__doc__) def _setoid(self, oid): |