Last change
on this file since 15184 was
1079,
checked in by joachim, 18 years ago
|
remove trace logging
|
-
Property svn:keywords set to
Id
|
File size:
670 bytes
|
Line | |
---|
1 | def _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 | |
---|
17 | from Products.CPSSchemas.DataModel import DataModel |
---|
18 | DataModel._commitData = _commitData |
---|
Note: See
TracBrowser for help on using the repository browser.