Hello Charlie, On Wed, 2011-06-08 at 10:48 +0200, Charlie Clark wrote: > From memory I can recall something similar related to making changes > to copies of instance attributes but failing to apply them to > attributes and needing to specifically go context.attribute = > form_result for the changes to persist.
Supposing, we have a form action like: @form.action('Apply') def handle_edit(self, action, data): self.context.name += "Blah" This change is visible in subsequent requests. i.e if we view this object via another form, we can see the modification. However, if we restart the server (bluebream), this change is lost. The same thing happens when we use "form.applyData". If we 'notify' ObjectModifiedEvent, this does not happen. Since the object's modification is visible across requests, I am assuming that the transaction mechanism 'did' apply the changes to the object. But, it did not get to the disk :-/ -- Joe Steeve HiPro IT Solutions Pvt. Ltd. http://hipro.co.in/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )