Search the web
Sign In
New User? Sign Up
mt-dev · Movable Type Developers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Upgrading custom object for my plugin   Message List  
Reply | Forward Message #2087 of 2112 |
Re: [mt-dev] Upgrading custom object for my plugin

On Thu, Aug 28, 2008 at 3:15 PM, jesse <jessedp@...> wrote:
>"list" is there now b/c
> it is the name of the object type the custom object I am messing with is
> defined as:
> object_types => {
> 'list' => 'MailChimp::ListDetails',
> },

This is correct, it must match the object type you have defined. Each
object passing the "condition" will get passed to the "code" function,
so your first line might be

my ($list) = @_;

...and you can manipulate and save the object from there.

> Any
> suggestions for that would be wonderful. I'd love to just have it dumped in
> a file somewhere that I can tail.

You could try Jay Allens log4mt tool [1]. I haven't tried it myself
yet, but I plan to, as it sounds quite helpful.

-Mark

[1] https://trac.endevver.com/movabletype/wiki/plugins/log4mt



Thu Aug 28, 2008 7:25 pm

bsakamano
Offline Offline
Send Email Send Email

Forward
Message #2087 of 2112 |
Expand Messages Author Sort by Date

Hello all. I'm putting out an updated version of our MT plugin and am having some issues with the upgrade scripts b/c I need to up the schema version. For the...
jesse
jessedp23
Offline Send Email
Aug 28, 2008
5:03 pm

Jesse, Its hard to be specific since you haven't posted any code but... I don't think the MT api will remove the column. It is pretty good add schema changes...
Mark Carey
bsakamano
Offline Send Email
Aug 28, 2008
5:41 pm

Thanks for the reply, Mark. Sorry for not posting code, but I had literally followed the example on the page I referenced to the tee. Anywho, here's my ...
jesse
jessedp23
Offline Send Email
Aug 28, 2008
6:15 pm

... This is correct, it must match the object type you have defined. Each object passing the "condition" will get passed to the "code" function, so your first...
Mark Carey
bsakamano
Offline Send Email
Aug 28, 2008
7:25 pm

Turns out I wasn't paying attention to the ever so important placement of a closing brace, so my entire upgrade_functions section was not in the registry...
jesse
jessedp23
Offline Send Email
Aug 28, 2008
7:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help