Changeset 7429 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 21 Dec 2011, 15:06:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py
r7269 r7429 29 29 from zope.schema import getFields 30 30 from zope.component import queryUtility 31 from zope.event import notify 31 32 from zope.catalog.interfaces import ICatalog 32 33 from waeup.sirp.interfaces import ( … … 244 245 return None 245 246 return student.get('studycourse') 247 248 def updateEntry(self, obj, row, site): 249 """Update obj to the values given in row. 250 """ 251 for key, value in row.items(): 252 # Skip fields not declared in interface. 253 if hasattr(obj, key): 254 setattr(obj, key, value) 255 # Update the students_catalog 256 notify(grok.ObjectModifiedEvent(obj.__parent__)) 257 return 258
Note: See TracChangeset for help on using the changeset viewer.