Changeset 48073
- Timestamp:
- 08/07/06 17:17:17 (2 years ago)
- Files:
-
- CPS3/products/CPSSchemas/trunk/CHANGES (modified) (1 diff)
- CPS3/products/CPSSchemas/trunk/DataModel.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS3/products/CPSSchemas/trunk/CHANGES
r47840 r48073 10 10 New internal features: 11 11 ~~~~~~~~~~~~~~~~~~~~~~ 12 - 12 - optional bypass of getEditableContent in datamodel commit (#1608 & #1714) CPS3/products/CPSSchemas/trunk/DataModel.py
r31171 r48073 313 313 adapter.setContextObject(ob, proxy) 314 314 315 def _commit(self, check_perms=1 ):315 def _commit(self, check_perms=1, _set_editable=True): 316 316 """Commit modified data into object. 317 317 … … 319 319 320 320 Try to re-get an editable version of the object before modifying 321 it. This is needed by CPS for frozen objects. 322 """ 323 self._setEditable() 321 it. This is needed by CPS for frozen objects and can be bypassed 322 with the _set_editable kwarg. This bypass should be used at creation 323 time only: the proxy doesn't know the new object yet in this case. 324 """ 325 if _set_editable: 326 self._setEditable() 324 327 ob = self._ob 325 328
