[Zope-dev] current namespace in an object method

Federico Di Gregorio fog@mixadlive.com
Tue, 16 May 2000 20:31:34 +0200


Hi *,

	little question. Sometimes I need to directly call a method on
an object defined in a product (ok, i am talking about Translator again,
don't flame me ;)

	<dtml-call "REQUEST.set('mail_body', translator.localize('body')">

the translator object does its magic and gets the right version of body,
but fails if body contains dtml-var commands, because inside the
localize function i don't have access to the local namespace ('_'.)

At now i pass it as an argument to localize(), but i would like better
to have access to _ from the body of the function. what i am missing here?

thanx,
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer                           fog@mixadlive.com
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
             A short story: I want you. I love you. I'll miss you. -- Me