Changeset 272

Show
Ignore:
Timestamp:
08/23/07 16:38:21 (1 year ago)
Author:
breese
Message:

removed debugging statements and committed fix for the Media Manager 1.x to 2.x upgrade process

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MediaManager/branches/4.x/plugins/MediaManager/lib/MT/Asset/Amazon.pm

    r265 r272  
    2323    my $asset = shift; 
    2424    my (%param) = @_; 
    25     print STDERR "In thumbnail_url()...\n"; 
    2625 
    2726    $param{'width'} = $param{'Width'} if ($param{'Width'}); 
     
    9897                                           img_drop => $param->{'img_drop'}, 
    9998                                           ); 
    100         print STDERR "url: " . $asset->url . "\n"; 
    101         print STDERR "label: " . $asset->label . "\n"; 
    102         print STDERR "thumbnail: " . $thumb . "\n"; 
    10399        $text = sprintf( 
    104100                        '<a href="%s"><img alt="%s" src="%s" %s/></a>', 
     
    108104                        $wrap_style, 
    109105                        ); 
    110 #       print STDERR "7\n"; 
    111106        return $asset->enclose($text); 
    112107    } 
  • trunk/MediaManager/branches/4.x/plugins/MediaManager/lib/MTAmazon3/Template/ContextHandlers.pm

    r265 r272  
    4141    } 
    4242 
    43     use Data::Dumper; 
    44  
    4543    my $config = readconfig($ctx->stash('blog_id')); 
    4644 
     
    5351    eval { 
    5452        $content_tree = ItemLookupHelper($config,$args); 
    55         print STDERR 'tree='.Dumper($content_tree)."\n"; 
    5653    }; 
    5754    if ($@) { 
  • trunk/MediaManager/branches/4.x/plugins/MediaManager/lib/MTAmazon3/Util.pm

    r265 r272  
    163163    my $url = _compose_url($operation, $config, $args); 
    164164 
    165     print STDERR "Getting $url\n"; 
    166165    require LWP::UserAgent; 
    167166    require HTTP::Request; 
  • trunk/MediaManager/branches/4.x/plugins/MediaManager/lib/MediaManager/Upgrade.pm

    r265 r272  
    3232        }, 
    3333        'convert_mm_entries' => { 
    34             version_limit => 3.03
     34            version_limit => 4
    3535            priority => 1, 
    3636            updater => { 
     
    4444                    my %terms; 
    4545                    my %options; 
    46                     my $a = MT::Asset::Amazon->remove_all; 
    4746                    my $iter = MediaManager::Entry->load_iter(  
    4847                                                               \%terms, 
    4948                                                               \%options, 
    5049                                                               ); 
     50                    my @failures; 
    5151                    while (my $entry = $iter->()) { 
    5252                        my $content_tree; 
     
    6161                        }; 
    6262                        if ($@) { 
    63                             return $app->error($@); 
     63                            push $entry->isbn,@failures; 
     64                            next; 
    6465                        } 
    6566                        my $item = $content_tree->{'Items'}->{'Item'}; 
    66  
    6767                        my $a = MT::Asset::Amazon->new; 
    6868 
    6969                        $a->label($entry->title); 
    7070                        $a->created_on($entry->created_on); 
    71                         $a->created_by( $entry->created_by ); 
     71                        $a->created_by($entry->created_by); 
    7272                        $a->blog_id($entry->blog_id); 
    7373                        $a->asin($entry->isbn);