On Feb 25, 4:09 pm, Ezra Parker <[EMAIL PROTECTED]> wrote: > > Does calling super.delete(stObj.objectid) not work on your extended CFC? > > This would work, but I am trying to override the parent method, not > extend it. Here is the issue I have encountered: > > The core dmImage delete method contains references to the dmEvent and > dmNews types in order to prevent deletion of images that are > referenced by these types. I am not using the farcrycms plugin for > this particular site, however, and the method errors when trying to > query the missing tables.
This is a legacy issue that really needs to be fixed. core should not have any dependencies on the presence of any plugin. > I can work around this in several ways, but I had hoped to come up > with a solution that did so without modifying the core dmImage type. > So essentially, I want to call delete() on: > farcry.core.packages.types.types > > Not on: > farcry.core.packages.types.dmImage > > Which is the base CFC of the calling CFC: > > farcry.projects.[projectname].packages.system.dmImage Perhaps we should be providing superDelete() by default on any core content type that could reasonably be expected to be extended? Btw what are you extending delete for? Is it something that might be an improvement to the default behaviour of an image object? -- 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 -~----------~----~----~----~------~----~------~--~---
