Re: [Modeling-users] EditingContext and Zope Sessions
Status: Abandoned
Brought to you by:
sbigaret
From: frobni b. <fro...@ya...> - 2003-09-10 18:18:24
|
Thanks a lot. I have another question concerning the sample code at the main page. john.addToAddresses(a_john); a_john.setPerson(john) Wouldn't it be enough to just use one of the above statements, because they do the same thing? --- Sebastien Bigaret <sbi...@us...> wrote: > > Hi, > > I worked a bit on the previously posted patch, the > ability to bind mdl > txns to zope txns is now controlled by a special > property of the > product. See the patch at: > > https://sourceforge.net/tracker/index.php?func=detail&aid=801961&group_id=58935&atid=489337 > > This patch allows you to bind the sessions' > defaultEditingContext() to > the zope transaction mechanism. > > If the boolean property of the Product > ZEditingContext (accessible at > > Control_Panel/Products/ZEditingContextSessioning/manage_propertiesForm) > 'bind_saveChanges_to_zope_transactions' is set, > saveChanges() is > called on the session's defaultEditingContext() > each time a zope > request/txn ends. > > NB: this has already been applied to CVS and will be > in the next > release. > > Regards, > > -- Sébastien. > > > frobni barka <fro...@ya...> wrote: > > Hello, > > > > According to the documentation > > ZEditingContextSessioning allows to lazily create > an > > EditingContext on a per-session basis. > > > > Is it possible to somehow (automatically) bind the > > EditingContext to a Zope Transaction (e.g. a Web > > Request). > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |