Fwd: Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Michael Dudzik
On Wed, 01 Feb 2006 19:15:13 +0100, "Igor Stroh" <[EMAIL PROTECTED]> said: > Michael Dudzik wrote: > > On Wed, 01 Feb 2006 09:07:17 +0100, "Andreas Jung" > [..] > >>>in Zope2 there's a test() method that can be used in TAL (*). Is there > >>>something comparable in Zope3? > >>> > >>>I know how to w

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Igor Stroh
Michael Dudzik wrote: > On Wed, 01 Feb 2006 09:07:17 +0100, "Andreas Jung" [..] >>>in Zope2 there's a test() method that can be used in TAL (*). Is there >>>something comparable in Zope3? >>> >>>I know how to write such a method but how to make it available in the >>>namespace of TALES-"python:"-ex

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Michael Dudzik
On Wed, 01 Feb 2006 09:07:17 +0100, "Andreas Jung" <[EMAIL PROTECTED]> said: > > > --On 1. Februar 2006 09:04:36 +0100 Frank Burkhardt <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > in Zope2 there's a test() method that can be used in TAL (*). Is there > > something comparable in Zope3? > > > > I

RE: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Andreas Jung
--On 1. Februar 2006 14:25:42 +0100 Roger Ineichen <[EMAIL PROTECTED]> wrote: Don't forget about the better overview in the project if you put application logic in view classes. (No more page template reading and macro searching for a code review) I knew that you love those kind of discussi

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Benji York
Andreas Jung wrote: Frank Burkhardt <[EMAIL PROTECTED]> wrote: in Zope2 there's a test() method that can be used in TAL (*). Is there something comparable in Zope3? You can write this in Python as condition and true_expression or false_expression In Python 2.5 you'll be able to write

RE: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Roger Ineichen
Hi Andreas [...] > > > > FWIW the classic Zope 3 solution is to say "Don't do that in the > > template! Do it in the view class!". I'll let others add vigor, if > > they wish. I just wanted you to know the "purist" answer in case you > > cared. ;-) > > > > If you have only one python: statement

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Gary Poster
On Feb 1, 2006, at 8:07 AM, Andreas Jung wrote: --On 1. Februar 2006 07:56:47 -0500 Gary Poster <[EMAIL PROTECTED]> wrote: FWIW the classic Zope 3 solution is to say "Don't do that in the template! Do it in the view class!". I'll let others add vigor, if they wish. I just wanted you to kn

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Andreas Jung
--On 1. Februar 2006 07:56:47 -0500 Gary Poster <[EMAIL PROTECTED]> wrote: On Feb 1, 2006, at 3:17 AM, Frank Burkhardt wrote: On Wed, Feb 01, 2006 at 09:04:36AM +0100, Frank Burkhardt wrote: [snip] Is this possible? Impressing simple solution :-) . FWIW the classic Zope 3 solution

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Gary Poster
On Feb 1, 2006, at 3:17 AM, Frank Burkhardt wrote: On Wed, Feb 01, 2006 at 09:04:36AM +0100, Frank Burkhardt wrote: [snip] Is this possible? Impressing simple solution :-) . FWIW the classic Zope 3 solution is to say "Don't do that in the template! Do it in the view class!". I'll l

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Frank Burkhardt
On Wed, Feb 01, 2006 at 09:04:36AM +0100, Frank Burkhardt wrote: [snip] > /> > > Is this possible? Impressing simple solution :-) . Thank you Andreas and Igor. Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/lis

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Igor Stroh
Frank Burkhardt wrote: > in Zope2 there's a test() method that can be used in TAL (*). Is there > something > comparable in Zope3? > > I know how to write such a method but how to make it available in the > namespace of TALES-"python:"-expressions? I would like to write expressions > like this: >

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Andreas Jung
--On 1. Februar 2006 09:04:36 +0100 Frank Burkhardt <[EMAIL PROTECTED]> wrote: Hi, in Zope2 there's a test() method that can be used in TAL (*). Is there something comparable in Zope3? I know how to write such a method but how to make it available in the namespace of TALES-"python:"-expressi

[Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Frank Burkhardt
Hi, in Zope2 there's a test() method that can be used in TAL (*). Is there something comparable in Zope3? I know how to write such a method but how to make it available in the namespace of TALES-"python:"-expressions? I would like to write expressions like this: Is this possible? Regards, Fr