[ZODB-Dev] Adding comments to transactions?
sean.upton@uniontrib.com
sean.upton@uniontrib.com
Wed, 12 Feb 2003 09:22:58 -0800
This can be useful, but the display for this in the ZMI isn't particularly
pretty as the notes get abutted together in their display. Perhaps people
should write their transaction notes in STX... ;)
Kidding aside, while the subject of transaction history in Zope is at hand:
I have an application that instantiates an out-of-process Zope.app() via a
cron'd python script ZEO/ClientStorage, gets a folder inside a CMF site, and
starts to populate it with new content items. However, the transaction, and
subsequent notes show up in the ZMI in the root folder's undo tab, and not
that of the folder I am using. Is there a way to make a transaction behave
more 'placeful' in the context of Zope, so the transaction history appears
in the "correct" place (in my case, the portal folder I am working on)?
Sean
-----Original Message-----
From: Chris McDonough [mailto:chrism@zope.com]
Sent: Wednesday, February 12, 2003 5:31 AM
To: Toby Dickenson
Cc: Andreas Jung; zodb-dev@zope.org
Subject: Re: [ZODB-Dev] Adding comments to transactions?
Wow. I didn't know. I always assumed it was one note per
transaction. Thanks!
On Wed, 2003-02-12 at 08:21, Toby Dickenson wrote:
> On Wednesday 12 February 2003 12:57 pm, Chris McDonough wrote:
> > This works:
> >
> > get_transaction().note('node XXX inserted')
> >
> > ... but sometimes it can be difficult to figure out where in the code to
> > do this, as one transaction might do several things (and thus get
> > several notes, and only the last note will show up for the transaction).
>
> Really? I am seeing multiple notes getting concatenated.
>
> --
> Toby Dickenson
> http://www.geminidataloggers.com/people/tdickenson
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/
ZODB-Dev mailing list - ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev