Changeset 6991 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 3 Nov 2011, 15:33:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/hostel.py
r6988 r6991 148 148 bt = u'%s_%s_reserved' % (sh, sex) 149 149 hostel.beds_reserved.append(bed_string) 150 # Comment of Martijn: 151 # If you have a non-Persistent subobject (like a list) and you change it, 152 # you need to manually flag the persistence machinery on the object that 153 # its subobject changed, with _p_changed. This is only necessary if some 154 # of the objects are not sublclasses of Persistent. For common built-in 155 # collections in Python such as list and dictionary there are replacements 156 # (PersistentList, PersistentMapping), and more advanced building blocks 157 # for indexes (BTrees), that don't have this issue. 150 158 hostel._p_changed = True 151 159 message = u'reserved'
Note: See TracChangeset for help on using the changeset viewer.