[ZPT] zope3-dev proposal on changing implicitly calling
Florent Guillaume
fg at nuxeo.com
Tue Jul 15 16:14:57 EDT 2003
Chris Withers wrote:
> Florent Guillaume wrote:
>> To be honest, this sucks. I've always wanted to write
>>
>> context/somefunc/something/etc
>>
>> and have TALES realize that somefunc, being a method, is callable and
>> couldn't possibly have a 'something' attribute or key.
>
>
> How do you differentiate when somefunc would be called and when it
> wouldn't?
It would always been called.
> What parameters would somefunc be called with?
None.
> What would happen if somefunc was callable and took one parameter?
TypeError.
> What would happen if somefunc was callable and took more or less than
> one parameter?
TypeError.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg at nuxeo.com
More information about the ZPT
mailing list