Re: [Zope] How to get modules that are called by external methodsreloaded?
- Original Message - From: Gaute Amundsen [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, January 19, 2007 4:36 AM Subject: [Zope] How to get modules that are called by external methodsreloaded? Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. AFAIK there is no way to reload a module called by an External Method without restarting Zope. I have encountered this situation many many times. If at all possible you should set up a development server so that you can do this more quickly (my restarts take about 10-15 seconds) and not impact production users. If you are really stuck with a single server for production and development one possible work-around is that you could copy the module source code into your external method, develop/debug, then move it out into its own file when has been completed. Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methodsreloaded?
On Friday 19 January 2007 13:42, Jonathan wrote: - Original Message - From: Gaute Amundsen [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, January 19, 2007 4:36 AM Subject: [Zope] How to get modules that are called by external methodsreloaded? Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. AFAIK there is no way to reload a module called by an External Method without restarting Zope. I have encountered this situation many many times. Ok, then :-( If at all possible you should set up a development server so that you can do this more quickly (my restarts take about 10-15 seconds) and not impact production users. If you are really stuck with a single server for production and development one possible work-around is that you could copy the module source code into your external method, develop/debug, then move it out into its own file when has been completed. Jonathan It was just during a maneuver like that, that I happened to reload a page, before i had swapped two lib folders... Ok. Thanks. Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methodsreloaded?
If you are really stuck with a single server for production and development one possible work-around is that you could copy the module source code into your external method, develop/debug, then move it out into its own file when has been completed. One may try with different Zope setup. I mean use ZEO with 2 zope instances that share sessions between them. With proper load balancer it is possible to almost transparently for the users restart one of the instances, and later, restart the second one. User are switched from one instance to the second and they're not losing their sessions. I've tried this only on a small environment, so I'm not sure how it will work in big, loaded production environment. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methodsreloaded?
At Friday 19/1/2007 09:42, Jonathan wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. AFAIK there is no way to reload a module called by an External Method without restarting Zope. I have encountered this situation many many times. reload(module) inside the E.M., and edit/save it. -- Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )