[Helma-user] (critical) issue with deep macro invocations

Michael Platzer michael.platzer at knallgrau.at
Sat Apr 21 13:15:46 CEST 2007


Hannes Wallnoefer schrieb:
> Is this with 1.6 rc1 or the latest CVS snapshot? I know this was a bug
> in 1.6 rc1, but it should be fixed in CVS.
>   
yes, you are right. this is fixed in CVS.

thanks,
  michi



> 2007/4/21, Michael Platzer <michael.platzer at knallgrau.at>:
>   
>> hi,
>>
>> i just found out, that the following code
>>
>> function main_action() {
>>    var skin = createSkin("<% root.xyz.test %>");
>>    this.renderSkin(skin);
>> }
>>
>> HopObject.prototype.test_macro = function(param) {
>>    res.write(this.href());
>> }
>>
>> surprisingly returns the URL of the Root-Object (instead of throwing an
>> error). That is, the fact that 'xyz' does not exist is simply ignored
>> and the macro 'test' is being applied on the root-object.
>>
>> i will go ahead and file a bug report (or is that behaviour actually
>> intented?).
>>
>>   michi
>>
>> _______________________________________________
>> Helma-user mailing list
>> Helma-user at helma.org
>> http://helma.org/mailman/listinfo/helma-user
>>
>>     
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
>   


-- 

DI Michael Platzer
technical director
--------------------------------------
knallgrau new media solutions gmbh
pezzlgasse 7|1, A-1170 wien
phone: +43 - 1 - 522 76 37
fax: +43 - 1 - 522 76 38
http://www.knallgrau.at
http://planet.knallgrau.at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20070421/fed05855/attachment-0001.html 


More information about the Helma-user mailing list