Re: Reg. persisting data in ZODB via forms

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Clark Consulting & Research
Message-ID <[email protected]>
Hi Joe,

Am 08.06.2011, 11:05 Uhr, schrieb Joe Steeve <[email protected]>:

> 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 :-/

I'm surprised at this but I'm not familiar with Bluebream's transactional  
processing. The quickest thing to do is to reenable notification and add a  
debug so that you can follow all the subscription calls and see what you  
need to call.

Why do want to disable notification?

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Zope-Dev maillist  -  [email protected]
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.