/[socialtext-import]/tamtam/tamtam2socialtext.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /tamtam/tamtam2socialtext.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by dpavlin, Thu Dec 13 12:54:43 2007 UTC revision 26 by dpavlin, Fri Dec 14 23:46:57 2007 UTC
# Line 85  find({ Line 85  find({
85    
86                  $page->{ $name } = {                  $page->{ $name } = {
87                          content => convert_markup( $data ),                          content => convert_markup( $data ),
88                            original => $data,
89                          date => convert_date( $date ),                          date => convert_date( $date ),
90                          attachments => $attachments,                          attachments => $attachments,
91                  };                  };
# Line 205  foreach my $name ( keys %$page ) { Line 206  foreach my $name ( keys %$page ) {
206    
207          Encode::_utf8_off( $body );          Encode::_utf8_off( $body );
208    
         $Rester->put_page( $name, { content => $body, date => $date });  
209          print "$name $date\n";          print "$name $date\n";
210    
211            # original markup
212            $Rester->put_page( $name, { content => $p->{original}, date => $date });
213    
214          foreach ( @tags ) {          foreach ( @tags ) {
215                  $Rester->put_pagetag( $name, $_ );                  $Rester->put_pagetag( $name, $_, { date => $date } );
216                  print "+ tag $_\n";                  print "+ tag $_\n";
217          }          }
218    
# Line 221  foreach my $name ( keys %$page ) { Line 225  foreach my $name ( keys %$page ) {
225                  }                  }
226          }          }
227    
228            # converted page
229            $Rester->put_page( $name, { content => $body, date => $date });
230    
231  }  }
232    

Legend:
Removed from v.25  
changed lines
  Added in v.26

  ViewVC Help
Powered by ViewVC 1.1.26