As a side bar, I just wanted to acknowledge Jared for reminding me of something I wanted to toy with.. A few months ago I had asked the list for a way to get all of my configured transfer object class names and Mark pointed me to the transfer.com.io.XMLFileReader.. I ended up using the same method Jared described to get a list of all configured classNames from transfer for use later on... after i got the data i needed I moved on, forgetting about the potentially powerful functionality this whole concept provided in my case..
I never put 2 and 2 together that I could also *MODIFY* my transfer.xml file with this same object/concept. Thanks Guys. On Dec 4, 8:03 pm, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote: > In short: No. > > Tips for the lazy: > > You could very easily use xmlParse() to load the transfer config, > loop over the results of xmlSearch(xml,"//object") and add a new > attribute like xmlSearchResults[i].xmlAttributes.decorator = > "my.path.to.my.Decorator". Then use fileSave(xml) to write the XML > object back to the original Transfer file's location. Then you'll > have to open it and use an XML formatter to reformat the XML because > CF writes XML back to one very, very long line. :) > > Or, as I said in a previous post (just reiterating, not being > grumpy), find/replace (hell, use reFindNoCase() for it, no big deal! > The approximate regex syntax is "(<object .*?)(/>)" and replace with > "$1 decorator="my.path.to.my.Decorator" $2". > > Best of luck! > > J > > On Dec 4, 2008, at 1:19 PM, Matt Graf wrote: > > > > > I don't think I am explaining myself very well lets see if I can > > explain it a little better > > > Here is an example of where I tell transfer to use my decorator > > <object name="widget_one" table="widget_one" > > decorator="model.decorators.widget_one"> > > > now what I want is for transfer to use my base decorator without > > telling transfer to do so. > > > is that possible? > > > On Thu, Dec 4, 2008 at 10:56 AM, Paul Marcotte > > <[EMAIL PROTECTED]> wrote: > >> Absolutely. I have a base Decorator that my "concrete" decorators > >> extend. > >> The base decorator itself extends transfer.com.TransferDecorator. > > >> Paul > > >> On Thu, Dec 4, 2008 at 10:51 AM, spiraldev <[EMAIL PROTECTED]> > >> wrote: > > >>> This may be a dump question but is there a way to create a global > >>> decorator? And have another decorator? basically I have a couple of > >>> functions that I want all of my transfer beans to have but I don't > >>> want to create a decorator for every transfer object. > > >> -- > >> Paul Marcotte > >> Fancy Bread - in the heart or in the head? > >>http://www.fancybread.com --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" 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/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
