Hi

Gesture's new future 'Helpers' does not work correctly on Railo.
I've contact to the Technical Support of Railo, Michael Streit about this
and got the next answer:

>Railo does not allow to overwrite the this scope because the
>this scope is more than a scope it refelct the cfc itself.

>railo still ignore something like <cfset this=value>, the only
>exception is, when "value" is of type struct, in this case we ADD all
>members of the struct to this.

>similar to:
><cfloop collection="#variables#" item="key">
>   <cfset this[key]=variables[key]>
></cfloop>

I create the patch for /ModelGlue/gesture/helper/
IncludeHelperShell.cfc:

===================================================================
--- C:/Program Files/Railo/webapps/ROOT/ModelGlue/gesture/helper/
IncludeHelperShell.cfc  (revision 111)
+++ C:/Program Files/Railo/webapps/ROOT/ModelGlue/gesture/helper/
IncludeHelperShell.cfc  (working copy)
@@ -6,7 +6,12 @@
       <cfinclude template="#arguments.template#" />

       <!--- Put your underwear on the outside. --->
-       <cfset this = variables />
+       <!---
+       <cfset this = "variables" />
+       --->
+       <cfloop collection="#variables#" item="key">
+           <cfset this[key]=variables[key]>
+       </cfloop>

       <cfreturn this />
 </cffunction>

many thanks,

-- ganymean(Tomoaki Tanaka)
http://blog.ganymean.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to