These two statements are NOT the same. 'modules' is a dictionary and you want to access the key 'Products.JMUtils.TranslationUtils' of this dictionary. The first statement has no way of figuring that out, I think. Stefan On Samstag, Mai 1, 2004, at 22:09 Europe/Vienna, Josef Albert Meile wrote:
Thanks for your reply. Finally I got working. I did everything what you said, but it didn't work either. So, I just replace:
<span tal:define="TranslationUtils modules/Products/JMUtils/TranslationUtils;"> Something comes here </span>
by its python equivalent:
<span tal:define="TranslationUtils python:modules['Products.JMUtils.TranslationUtils'];"> Something comes here </span>
and guess what, it worked. I find this behaviour wird because according to the Zope book both statements should do the same. I will try to do a small test file and submit it again here, so, we can see either it's my error or a bug on zope. -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/