[Grok-dev] Exporting Apps

Tim Cook timothywayne.cook at gmail.com
Fri Jan 23 18:25:31 EST 2009


Thanks Sebastian,

Hmmmm, it might be more useful to create a top level dir with a script
that starts all three apps on different ports.  Then if they need to be
moved it would seem simpler?

--Tim



On Sat, 2009-01-24 at 00:21 +0100, Sebastian Ware wrote:
> 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
> 
-- 
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*
**************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090123/46014781/attachment.bin 


More information about the Grok-dev mailing list