[Grok-dev] Manipulating the Grok ZODB via Script.
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Sat Jul 17 11:36:58 EDT 2010
> Hi,
>
> I tried this script method, the method with an event handler for the
> ObjectCreated event of the application and creating the objects in
> __init__ method of my app, but in all cases the newly created objects
> didn't get an IntId assigned, which happens normally if I create an
> object with an AddForm. I thought that maybe I have to trigger the
> appropriate events manually with grok.notify, but that didn't help. Can
> you help a brother out?
Isn't it the ObjectAddedEvent that'll trigger the intid assignment? So,
what happens if you add the object you created in the script, to a
container?
regards, jw
More information about the Grok-dev
mailing list