[Zope] VERY Confused!
seb bacon
seb@jamkit.com
Wed, 24 Oct 2001 10:17:38 +0100
I'm taking this back on the list - it could be useful to others, and
someone else might have some better explanation for you...
* Ben Ocean <beno@thewebsons.com> [011023 21:55]:
> >How exactly are you checking the types of the parameters? You need to
> >find out what they really are, and I'd bet money on them not being
> >strings.
> When I rewrite sizeCalc()
>
> def sizeCalc(x,y):
> return type(y)
>
> I get this:
> <span class="top"><img src="images/top" width=<extension class
> Acquisition.ImplicitAcquirerWrapper at 401aa2e0> height=<extension class
> Acquisition.ImplicitAcquirerWrapper at 401aa2e0>></span>
OK, all objects in zope are ImplicitAcquirerWrappers - that's what
makes Acqusition work. Why your dtml method should be returning an
Acquisition wrapper instead of an int, I'm not sure. I suspect that
somehow the DTML method is not getting called in your dtml, and you're
getting the method object instead.
Try explicitly calling the DTML Method, using something like:
<dtml-var "1008, size(_.None, _)">
seb