Re: [Zope3-dev] tal:replace="default" question

2005-05-13 Thread Stephan Richter
On Friday 13 May 2005 10:34, Paul Winkler wrote:
> On Fri, May 13, 2005 at 05:39:56PM +0400, Dmitry Vasiliev wrote:
> > Shouldn't '42' return '42' instead of
> > '42'?
> >
> > I think about these cases:
> >
> > '42'  =>  '42'
> > '42'  =>  '42'
>
> +1. IMHO the current behavior is wrong. "replace" should always replace
> the element, no exceptions.
> (Zope 2 has the same bug, I just checked.)
>
> Can you file a collector issue for this?

He just told us on #zope3-dev that he is almost done fixing it on the Zope 3 
branch. Dimitry recently did some other great bug-fixes in TAL that need 
back-porting to Zope 2.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] tal:replace="default" question

2005-05-13 Thread Paul Winkler
On Fri, May 13, 2005 at 05:39:56PM +0400, Dmitry Vasiliev wrote:
> 
> Shouldn't '42' return '42' instead of 
> '42'?
> 
> I think about these cases:
> 
> '42'  =>  '42'
> '42'  =>  '42'

+1. IMHO the current behavior is wrong. "replace" should always replace
the element, no exceptions.
(Zope 2 has the same bug, I just checked.)

Can you file a collector issue for this?
 
-- 

Paul Winkler
http://www.slinkp.com
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] tal:replace="default" question

2005-05-13 Thread Andreas Jung

--On Freitag, 13. Mai 2005 17:39 Uhr +0400 Dmitry Vasiliev 
<[EMAIL PROTECTED]> wrote:

Shouldn't '42' return '42' instead of
'42'?
I think about these cases:
'42'  =>  '42'
'42'  =>  '42'
it works as expected if you redefine 'default' on your own...so it is 
working
except in this esoteric context.

-aj


pgp62INEIRKJm.pgp
Description: PGP signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] tal:replace="default" question

2005-05-13 Thread Dmitry Vasiliev
Shouldn't '42' return '42' instead of 
'42'?

I think about these cases:
'42'  =>  '42'
'42'  =>  '42'
--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com