WWW::Mechanize::TWiki

WWW::Mechanize::TWiki is a WWW::Mechanize subclass to navigate TWiki wikis.
Download

WWW::Mechanize::TWiki Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Will Norris
  • Publisher web site:
  • http://search.cpan.org/~wbniv/WWW-Mechanize-TWiki-0.12/lib/WWW/Mechanize/TWiki.pm

WWW::Mechanize::TWiki Tags


WWW::Mechanize::TWiki Description

WWW::Mechanize::TWiki is a WWW::Mechanize subclass to navigate TWiki wikis. WWW::Mechanize::TWiki is a WWW::Mechanize subclass to navigate TWiki wikis.SYNOPSISThis document describes a subclass of WWW::Mechanize. Knowledge of WWW::Mechanize usage is assumed. use File::Basename; use WWW::Mechanize::TWiki; my $mech = WWW::Mechanize::TWiki->new( agent => File::Basename::basename( $0 ), autocheck => 1 ) or die $!; $mech->cgibin( 'http://ntwiki.ethermage.net/~develop/cgi-bin', { scriptSuffix => '' } ); # (optional) establish credentials --- do this *after* setting cgibin# $mech->credentials( undef, undef, USERNAME => PASSWORD ); # get a list of topics in the _default web (typically somewhere around 11 topics) my @topics = $mech->getPageList( '_default' ); # create a new page (no modifications, just use the template) my $topic = 'Tinderbox.TestsReportSvn' .$svnRev; $mech->edit( $topic, { topicparent => 'WebHome', templatetopic => 'TestReportTemplate', formtemplate => 'TestReportForm', } ); $mech->click_button( value => 'Save' ); # attach a file to the newly-created topic $mech->follow_link( text => 'Attach' ); $mech->submit_form( fields => { filepath => 'report.txt', filecomment => `date`, hidefile => undef, } ); # change a topic $mech->edit( $topic ); $mech->field( text => 'New topic text' ); $mech->click_button( value => 'Save' ); # append to a topic $mech->edit( $topic ); my $text = $mech->field( 'text' ); $text .= " * Adding to the text! `date`"; $mech->field( text => $text ); $mech->click_button( value => 'Save' ); Requirements: · Perl · CPAN:WWW::Mechanize · CPAN:HTML::TableExtract · CPAN:MIME::Base64 (for authentication)


WWW::Mechanize::TWiki Related Software