Zope 2.8.4 external methods do not autorefresh
test framework: <dtml-var standard_html_header> <dtml-var expr="eproc()"> <dtml-var standard_html_footer> Setup an external method def eproc( self ): return 'hello world' and run the test method. It prints hello world Now, change the test method def eproc( self ): return 'hello world too' and run the test method. It prints hello world which is a deviation from the usual Zope2 behavior. To adopt the code for the modified method the external method needs to be resaved. Is this a bug or a feature? --
----- Original Message ----- From: "Dennis Allison" <allison@shasta.stanford.edu> To: <zope@zope.org> Sent: Friday, November 18, 2005 2:25 PM Subject: [Zope] Zope 2.8.4 external methods do not autorefresh
test framework:
<dtml-var standard_html_header> <dtml-var expr="eproc()"> <dtml-var standard_html_footer>
Setup an external method
def eproc( self ): return 'hello world'
and run the test method. It prints
hello world
Now, change the test method
def eproc( self ): return 'hello world too'
and run the test method. It prints
hello world
which is a deviation from the usual Zope2 behavior.
No its not.
To adopt the code for the modified method the external method needs to be resaved.
Yep.
Is this a bug or a feature?
Feature. Jonathan
Dennis Allison wrote:
To adopt the code for the modified method the external method needs to be resaved.
Is this a bug or a feature?
Feature unless you had debug mode switched on. Debug mode is off by default in Zope 2.8 (as it should). Martijn Pieters
On Fri, Nov 18, 2005 at 11:25:06AM -0800, Dennis Allison wrote:
To adopt the code for the modified method the external method needs to be resaved.
*Or* you need to have debug-mode on ... in your zope.conf. It's always been that way. I'm guessing you didn't turn on debug-mode for your 2.8 instance? -- Paul Winkler http://www.slinkp.com
<blush> Yup. or so it seems. Thanks. Stupid errors confume the day... On Fri, 18 Nov 2005, Paul Winkler wrote:
On Fri, Nov 18, 2005 at 11:25:06AM -0800, Dennis Allison wrote:
To adopt the code for the modified method the external method needs to be resaved.
*Or* you need to have
debug-mode on
... in your zope.conf. It's always been that way.
I'm guessing you didn't turn on debug-mode for your 2.8 instance?
--
participants (4)
-
Dennis Allison -
Jonathan -
Martijn Pieters -
Paul Winkler