When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed?
Dennis Allison wrote:
When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed?
Click the edit button on the external method object. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged(). On Mon, 3 Apr 2006, Chris Withers wrote:
Dennis Allison wrote:
When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed?
Click the edit button on the external method object.
cheers,
Chris
--
Dennis Allison wrote:
Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged().
*shrugs* If you already had a solution, then why on earth did you bother asking? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Figured it out after the fact :-( and have not yet tested it before posting it as a solution On Mon, 3 Apr 2006, Chris Withers wrote:
Dennis Allison wrote:
Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged().
*shrugs*
If you already had a solution, then why on earth did you bother asking?
Chris
--
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis Allison wrote:
When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed?
Not a use case for production servers. Your best bet is: #!/bin/sh /path/to/zope/instance/bin/zopectl restart on each instance. If you know the path of a specific EM, then you can write a script which forces it to reload, e.g.: # Reload a given script app.path.to.external_method.reloadIfChanged() which you will again need to to on each instance (the compiled code is not persisted to the ZODB). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEMc8h+gerLs4ltQ4RAkExAJ9BApgEvQE87o8K7w5YDwnJA3yXVgCfRnsZ +KPz3mA/4XOsYA8UqfDhj8o= =nOMh -----END PGP SIGNATURE-----
participants (4)
-
Chris Withers -
Dennis Allison -
Tino Wildenhain -
Tres Seaver