
ruz at bestpractical
Jun 10, 2013, 11:36 AM
Post #3 of 7
(163 views)
Permalink
|
On Mon, Jun 10, 2013 at 10:31 PM, Bradley Bell <bradleyb [at] uw> wrote: > Unless I'm mistaken, no RT class will load more than one Vendor > overlay, so if I have two plugins installed, and each provide a Vendor > file, only one will get loaded. > > Am I correct in surmising that the overlay mechanism was never really > meant to be used by plugins in this way? Yes and no. In 3.6 nad older plugins were installed in local/ so you couldn't have two plugins with the same _Local.pm or _Vendor.pm file. We were using such files in plugins, but quickly it proved to be wrong. > It seems most plugins only > need to make a couple of changes to RT classes and just do it right in > the main plugin .pm. Are there any other recommended methods? > see lib/RT/IR.pm in RTIR extension. We basicly wrap methods from extensions' primary file. For Asset Tracker, which has several _Vendor files, I'm thinking of > perhaps renaming them *_ATOverlay.pm and then requiring those from > AssetTracker.pm. > > Thanks, > -- > Bradley Bell > Classroom Support Services | University of Washington > 035 Kane Hall | Box 353095 Seattle, WA 98195-3095 > p 206.543.9900 | f 206.685.7892 | www.css.washington.edu > > > -- > RT Training in Seattle, June 19-20: http://bestpractical.com/training > -- Best regards, Ruslan.
|