I would look back at what Paul suggested: > You could use decorator="path.to.baseDecorator".
Then you don't need a decorator cfc, you just need a few extra characters in your transfer.xml file. If you're really too lazy to do that, then I have an idea that would probably work, but it would be more work to set it up and maintain it than Paul's suggestion: I imagine that you could use the AfterNew event to inject methods into Transfer Objects. You'd need to create an observer cfc and wire it to the AfterNew event, and that observer could contain the methods that you want injected. If you only want those methods in objects without decorators, you'd need some additional logic for that, and I'm not sure that Transfer has the ability to tell you whether an object has a decorator or not. Bob On Thu, Dec 4, 2008 at 2:42 PM, Paul Marcotte <[EMAIL PROTECTED]> wrote: > ya see, that's the problem with transfer. it makes things so easy that it > breeds abject laziness... ;) > > Paul > > On Thu, Dec 4, 2008 at 11:38 AM, Matt Graf <[EMAIL PROTECTED]> wrote: >> >> Just being lazy. :) >> >> On Thu, Dec 4, 2008 at 11:26 AM, Chris Peterson <[EMAIL PROTECTED]> >> wrote: >> > why in the world would you want that? I mean, for real, you *could* add >> > functions inside the transfer decorator object itself (you shouldnt do >> > this), but whats the deal here? Just make each one of your objects have >> > a >> > decorator, and dont put anything into it if you dont want, and have all >> > those blank decorators extend your base decorator, and you will be all >> > set. >> > What you got against a decorator file? =) >> > >> > Chris >> > >> > On Thu, Dec 4, 2008 at 2:21 PM, Matt Graf <[EMAIL PROTECTED]> wrote: >> >> >> >> that is what I thought. >> >> >> >> On Thu, Dec 4, 2008 at 11:20 AM, Matt Quackenbush >> >> <[EMAIL PROTECTED]> >> >> wrote: >> >> > >> >> > >> >> > On Thu, 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? >> >> > >> >> > >> >> > No. >> >> > >> >> > > >> >> > >> >> >> >> >> > >> > >> > >> > -- >> > Hey! I dont tell you how to tell me what to do, so dont tell me how to >> > do >> > what you tell me to do! ~ Bender (Futurama) >> > >> > > >> > >> >> > > > > -- > Paul Marcotte > Fancy Bread - in the heart or in the head? > http://www.fancybread.com > > > > -- Bob Silverberg www.silverwareconsulting.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 -~----------~----~----~----~------~----~------~--~---
