[Grok-dev] Exporting Apps
Sebastian Ware
sebastian at urbantalk.se
Fri Jan 23 18:21:39 EST 2009
Currently there is no simple export feature. You have to write your
export and import code yourself. It is a bit tricky because you have
to serialise relations, handle annotations etc. you can't just pickle
the root object because you get circular references through the
context.__parent__ attribute. You also want the registration machinery
to kick in properly, so you probably want to recreate your objects and
manipulate them in a similar way to how they were originally created.
When you recreate the object structure you also have an issue with the
fact that containers aren't ready to accept content until somewhere
around the ObjectCreation-event. You have to update the containers in
a "two-way commit".
That said, it can be done, and it is bloody useful.
Mvh Sebastian
23 jan 2009 kl. 23.09 skrev Tim Cook:
> If I have three Grok applications running together on one site and at
> some point in the future I decided to split them up over different
> servers for performance/security reasons; is that possible?
>
> Should I may set them up as a grok.site() at the outset?
>
> Thanks,
> Tim
>
>
>
>
> --
> Timothy Cook, MSc
> Health Informatics Research & Development Services
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> Skype ID == timothy.cook
> **************************************************************
> *You may get my Public GPG key from popular keyservers or *
> *from this link http://timothywayne.cook.googlepages.com/home*
> **************************************************************
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list