class MyTable(SQLObject): myfield = IntCol() def _get_myfield(self): return self._SO_get_myfield() + 5