Ok this is in SVN now As of revision 273.
I just changed the behaviour of this method to trim the variables before they are set. Now we won't have to worry about this issue. I also added the scope as the return of the function, so you can now do this: <cfset scope = event.copyToScope( scope, "list,of,stuff" ) /> DW On Thu, Feb 11, 2010 at 11:37 AM, Dan Wilson <[email protected]> wrote: > I'll do it when I can turn toward MG stuff. The ticket will be enough to > remind me of what needs to be done. > > > > DW > > > On Thu, Feb 11, 2010 at 11:34 AM, Fernando Lopez <[email protected]> wrote: > >> shoot I just realized the title of the ticket. >> Space in CopyToScope() produces variables that are CF safe. >> should read >> Space in CopyToScope() produces variables that are NOT CF safe >> could someone edit? >> >> On Thu, Feb 11, 2010 at 11:33 AM, Fernando Lopez <[email protected]>wrote: >> >>> Thanks for the quick response Dan >>> http://trac.model-glue.com/ticket/399 >>> >>> has been entered. >>> >>> Fernando >>> >>> >>> On Thu, Feb 11, 2010 at 11:21 AM, Dan Wilson <[email protected]> wrote: >>> >>>> You are 100% correct Fernando. >>>> >>>> Tell you what, I'll make sure this gets fixed in time for the release >>>> next week. I don't want to forget this so would you please enter a trac >>>> ticket so we make sure it gets done? >>>> >>>> You can enter the ticket here: http://trac.model-glue.com/newticket >>>> >>>> Thanks for reporting the issue. >>>> >>>> >>>> DW >>>> >>>> >>>> >>>> On Thu, Feb 11, 2010 at 11:08 AM, Fernando Lopez <[email protected]>wrote: >>>> >>>>> I've been developing MG2 apps for a while but now I'm trying to use >>>>> MG3, in doing so I went through the small tutorial on the website so I >>>>> can learn about the new functions. >>>>> I spent quite sometime pulling my hair when I kept getting the >>>>> following error >>>>> "Element TRANSLATEDPHRASE is undefined in VARIABLES." >>>>> >>>>> I checked every single one of the pages, I Cfdumped the variables and >>>>> no luck, then I caved in and copy pasted the code from the example ( I >>>>> originally had typed things myself). >>>>> >>>>> I found that this "<cfset event.copyToScope(variables, >>>>> "xe.translationForm, translatedPhrase") /> " produces and error if you >>>>> leave a space after the comma and before "translatedPhrase". >>>>> >>>>> Wouldn't make sense for readability purposes to allow for spaces but >>>>> when parsing through the list apply a trim so the variables can be >>>>> used without the space? After all CF doesn't allow for variable names >>>>> with blank spaces right? >>>>> >>>>> I downloaded the latest stable from the website MG 3.1.185. >>>>> >>>>> I don't consider this to be a show stopper but a small annoyance that >>>>> had me going for about 15-20 minutes. >>>>> >>>>> I'm posting this in case someone encounters the same issue. >>>>> >>>>> Fernando. >>>>> >>>>> -- >>>>> Model-Glue Sites: >>>>> Home Page: http://www.model-glue.com >>>>> Documentation: http://docs.model-glue.com >>>>> Bug Tracker: http://bugs.model-glue.com >>>>> Blog: http://www.model-glue.com/blog >>>>> >>>>> 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]<model-glue%[email protected]> >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/model-glue?hl=en >>>> >>>> >>>> >>>> >>>> -- >>>> “Come to the edge, he said. They said: We are afraid. Come to the edge, >>>> he said. They came. He pushed them and they flew.” >>>> >>>> Guillaume Apollinaire quotes >>>> >>>> -- >>>> Model-Glue Sites: >>>> Home Page: http://www.model-glue.com >>>> Documentation: http://docs.model-glue.com >>>> Bug Tracker: http://bugs.model-glue.com >>>> Blog: http://www.model-glue.com/blog >>>> >>>> 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]<model-glue%[email protected]> >>>> For more options, visit this group at >>>> http://groups.google.com/group/model-glue?hl=en >>> >>> >>> >> -- >> Model-Glue Sites: >> Home Page: http://www.model-glue.com >> Documentation: http://docs.model-glue.com >> Bug Tracker: http://bugs.model-glue.com >> Blog: http://www.model-glue.com/blog >> >> 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]<model-glue%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/model-glue?hl=en >> > > > > -- > “Come to the edge, he said. They said: We are afraid. Come to the edge, he > said. They came. He pushed them and they flew.” > > Guillaume Apollinaire quotes > -- “Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.” Guillaume Apollinaire quotes -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog 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
