On Feb 26, 1:23 pm, Mark Jones <[email protected]> wrote: > > You can tell what FarCry has registered as plugins by dumping > > #application.plugins# and #application.stplugins# > > I figured something like that existed. I tried dumping application > itself, but got the java heap-size error I was expecting.
Hah! FarCry application scope is getting a bit large. We want to refactor things and move everything into the private scope of a few components -- sigh, one day. > > unfortunately its not really going to tell you whether or not your plugin > > loaded successfully. > > Aw, nuts. Possibly unrelated, but what is supposed to be in > stPlugins? Mine's empty. This is where plugin developers can store information if they need to; stplugin["pluginname"]. Some plugins use it, many don't. > > Last but not least.. you could simply grab Jeff's image.cfc and place > > it in your project directly under ./projectname/packages/formtools/ > > image.cfc (the plugin is essentially just a single component). > > That makes a lot of sense. ...and, now that you say that, I think I > know exactly what's wrong. > > You know, I usually hold back from using forums like this because > almost invariably problems like this end up being my own damn fault > and I feel like a fool. This is one of those times. It turns out the > formtool I was testing the image upload routine against was the one I > had created myself, which extended > farcry.core.packages.formtools.image directly... so of course it won't > get the behavior of the plugin version. > > I changed that to extend the plugin, reloaded the app, and everything > works as expected. Thanks for knocking my brain onto the inheritance > track. Great to hear you're playing with the whole extension caper! We've tried to make this an aspect of all componentry. My favourite inheritance wizardry is in the way in which Views are managed. One of these days someone will right a little piece on just why its so marvellous ;) All the best, -- geoff http://www.daemon.com.au/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-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/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
