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
--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
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:
>
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
Hi !
I'm actually trying to create a Zope3 application, where I may be able to make queries :
- looking for content in the whole site
- looking for content in a given "sub-site" or list of "sub-sites", eventually including all it's "sub-folders".
With Zope2, I was commonly using a PathIn
On Wednesday 01 February 2006 01:46, Marko Mikulicic wrote:
> for="zope.app.authentication.interfaces.IPrincipalCreated"
> handler=".mytest.principalCreated"
> />
>
> and then if the prefix of the "event.principal.id" is what I like
> then add some group to it, but I don't like the s
On Feb 1, 2006, at 3:12 AM, Thierry FLORAC wrote:
Hi !
I'm actually trying to create a Zope3 application, where I may be
able to make queries :
- looking for content in the whole site
- looking for content in a given "sub-site" or list of "sub-sites",
eventually including all it's "sub
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
--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
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
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
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
--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
Guido van Rossum is looking for a web app framework.
http://blog.delaguardia.com.mx/index.php?op=ViewArticle&articleId=34&blogId=1
Zope is conspicuous by its absence from the discussion. Hardly a
mention, and no advocacy at all. Is Zope just too heavyweight for the
project he has in mind? Or wha
Wade Leftwich wrote:
Guido van Rossum is looking for a web app framework.
http://blog.delaguardia.com.mx/index.php?op=ViewArticle&articleId=34&blogId=1
Zope is conspicuous by its absence from the discussion. Hardly a
mention, and no advocacy at all. Is Zope just too heavyweight for the
project
He'll be back. After he finishes the project, Google will "tweak" the requirements a few times, and GvR will need to "refactor". After he throws out and/or completely restructures 90% of his code, he'll look for a different solution. Interfaces, components and zcml will start looking real nice. I
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
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
On Wednesday 01 February 2006 12:51, ksmith99 (sent by Nabble.com) wrote:
> He'll be back. After he finishes the project, Google will "tweak" the
> requirements a few times, and GvR will need to "refactor". After he throws
> out and/or completely restructures 90% of his code, he'll look for a
> dif
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
Michael Dudzik wrote:
Sure, but what about when you don't know the boolean value ahead of
time, like:
C and f(x) or g(x)
On the other hand, (g(x), f(x))[C] works every time
To be fair, both g(x) and f(x) are evaluated while
f(x) if C else g(x) # python 2.5, only evaluates the approp
On Wed, 01 Feb 2006 20:26:24 +0100, "Florent Guillaume" <[EMAIL PROTECTED]>
said:
> Michael Dudzik wrote:
> > Sure, but what about when you don't know the boolean value ahead of
> > time, like:
> >
> >C and f(x) or g(x)
> >
> >On the other hand, (g(x), f(x))[C] works every time
> >
> > T
On Wed, Feb 01, 2006 at 01:38:15PM -0600, Michael Dudzik wrote:
> But why not just use (bar,foo)[C] in all cases, regardless of the value
> of bar or foo?
Because it always evaluates both foo and bar, and sometimes you can't
afford that (e.g. if they are expensive expressions rather than
simple va
On Wed, 1 Feb 2006 14:57:58 -0500, "Paul Winkler" <[EMAIL PROTECTED]>
said:
> Prior to python 2.5, there is AFAIK no other always-works
> short-circuiting one-line conditional expression but this:
> (bool(C) and [foo] or [bar])[0]
Agreed that that works every time, but so does:
(bar,foo)[bool(C)]
On Wed, 01 Feb 2006 14:34:26 -0600, "Michael Dudzik"
<[EMAIL PROTECTED]> said:
> On Wed, 1 Feb 2006 14:57:58 -0500, "Paul Winkler" <[EMAIL PROTECTED]>
> said:
> > Prior to python 2.5, there is AFAIK no other always-works
> > short-circuiting one-line conditional expression but this:
> > (bool(C) a
25 matches
Mail list logo