source: WAeUP_SRP/trunk/patches/PatchCPSSchemasDataModel.py @ 7657

Last change on this file since 7657 was 3673, checked in by jens, 16 years ago
  • unclutter package by moving all patch files into a dedicated subfolder and importing it.
  • Property svn:keywords set to Id
File size: 670 bytes
Line 
1def _commitData(self):
2    """Compute dependent fields and write data into object."""
3
4    # Compute dependent fields.
5    data = self.data
6    for schema in self._schemas:
7        for field_id, field in schema.items():
8            if self.isDirty(field_id):
9                #LOG("DataModel", TRACE, "Computing field '%s'" % (field_id,))
10                field.computeDependantFields(self._schemas, data,
11                                             context=self._context)
12
13    # Call the adapters to store the data.
14    for adapter in self._adapters:
15        adapter.setData(data)
16
17from Products.CPSSchemas.DataModel import DataModel
18DataModel._commitData = _commitData
Note: See TracBrowser for help on using the repository browser.