[Zope] ZODB access via ZEO
Dieter Maurer
dieter at handshake.de
Thu Feb 8 15:49:38 EST 2007
Adit Ranadive wrote at 2007-2-7 14:10 -0500:
> ...
>Im trying to read from the data.fs file plone product information like home
>attributes.
>Im doing this via ZEO using app.Control_Panel.Products.getObjectItems()
>This returns to me a set of (object ids, objects). Using the object I change the
>home attribute.
>When I restart the script the home attribute is the same as it was before. So
>the change did not take place in the database.
>Is there any way to check back in the retrieved object from data.fs?
I see too possibilities:
1. You forgot the "import transaction; transaction.commit()"
to make your changes persistent
2. The objects in "Control_Panel.Products" can be modified
during startup for file systems based objects.
--
Dieter
More information about the Zope
mailing list