I agree with JEff, at least in part.  If we aren't going to actually move
our fusebox "Attributes" to the genuine attributes scope, then why not just
have a scope of our own?  Is that such an unbelievable thing?  In all
honesty we're already doing it at the moment by "faking" the attributes
scope.  Why make our own acronym'd scope, like "fba" or whatever, and use
that.  Might also save a little confusion.

The other side to this is that obviously it means we now have form and url
variables in a seperate scope to any attributes passed in when custom tag
calls are made.

I'm just playing devils advocate here, but from both these sides there has
to be an elegant and functional way to solve the whole thing...


Toby Tremayne
Code Poet and Zen Master of the Heavy Sleep
Show Ads Interactive
359 Plummer St
Port Melbourne
VIC 3207
P +61 3 9245 1247
F +61 3 9646 9814
ICQ UIN  13107913

-----Original Message-----
From: Jeff Peters [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 24 March 2001 7:10 AM
To: Fusebox
Subject: Re: Musings on Attributes (was Best Practices...)


On 23 Mar 2001, at 13:45, Steve Nelson wrote:

> If that's the real problem then it's just a matter of some simple code
> rewrites.
>
> I just changed my copy to put everything into the attributes scope, and
> it seems to work fine. Is anyone using the #request.attributeslist#

Does using <cfset attributes = StructNew()> actually cause genuine
attributes
(i.e., values passed to the app as a custom tag) to be included in the
structure as well?  If not, I still suggest we deprecate the use of the
Fusebox
"attributes" pseudo-scope/structure and use a structure named, say, "fba"
(whatever; but take the opportunity to make it short) in order to clarify
the
difference between the genuine Attributes scope and the Fusebox structure.

For sake of clarity, formurl2attributes should become formurlattr2fba (or
whatever) so there's clear delineation between valid apps using
formurl2attributes (which won't need to be changed) and new apps using the
new
structure.

- Jeff

==============================================================
| Jeffrey S. Peters       | "Specialization is for insects." |
| [EMAIL PROTECTED] |                 - Lazarus Long   |
| PGP key for Jeffrey S. Peters at ldap://keyserver.pgp.com  |
==============================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to