Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socialtext::editpage(3pm) [debian man page]

Socialtext::EditPage(3pm)				User Contributed Perl Documentation				 Socialtext::EditPage(3pm)

NAME
Socialtext::EditPage - Edit a wiki page using your favourite EDITOR. SYNOPSIS
Fetch a page, edit it, and then post it. use Socialtext::EditPage; # The rester is set with the server and workspace my $rester = Socialtext::Resting->new(%opts); my $s = Socialtext::EditPage->new(rester => $rester); $s->edit_page('Snakes on a Plane'); FUNCTIONS
new( %opts ) Arguments: rester Users must provide a Socialtext::Resting object setup to use the desired workspace and server. pull_includes If true, "include" wafls will be inlined into the page as extraclude blocks. "edit_page( %opts )" This method will fetch the page content, and then run $EDITOR on the file. After the file has been edited, it will be put back on the wiki server. Arguments: page The name of the page you wish to edit. callback If supplied, callback will be called after the page has been edited. This function will be passed the edited content, and should return the content to be put onto the server. summary_callback If supplied, callback will be called after the page has been edit. This function should return the edit summary text for this edit, if desired. tags If supplied, these tags will be applied to the page after it is updated. output If supplied, the page will be saved to the given file instead of edited. The page will not be uploaded to the server. template If specified, this page will be used as the template for a new page. "edit_last_page( %opts )" This method will retrieve a last of all pages tagged with the supplied tag, and then open the latest one for edit. Arguments are passed through to edit_page(), accept for: tag The name of the tag you wish to edit. AUTHOR
Luke Closs, "<luke.closs at socialtext.com>" BUGS
Please report any bugs or feature requests to "bug-socialtext-editpage at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Socialtext-Resting-Utils>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Socialtext::EditPage You can also look for information at: o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/Socialtext-Resting-Utils> o CPAN Ratings <http://cpanratings.perl.org/d/Socialtext-Resting-Utils> o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Socialtext-Resting-Utils> o Search CPAN <http://search.cpan.org/dist/Socialtext-Resting-Utils> ACKNOWLEDGEMENTS
COPYRIGHT &; LICENSE Copyright 2006 Luke Closs, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-10-19 Socialtext::EditPage(3pm)

Check Out this Related Man Page

Socialtext::Resting::Mock(3pm)				User Contributed Perl Documentation			    Socialtext::Resting::Mock(3pm)

NAME
Socialtext::Resting::Mock - Fake rester SYNOPSIS
my $rester = Socialtext::Resting::Mock->(file => 'foo'); # returns content of 'foo' $rester->get_page('bar'); FUNCTIONS
new( %opts ) Create a new fake rester object. Options: file File to return the contents of. server( $new_server ) Get or set the server. username( $new_username ) Get or set the username. password( $new_password ) Get or set the password. workspace( $new_workspace ) Get or set the workspace. get_page( $page_name ) Returns the content of the specified file or the page stored locally in the object. get_pages Retrieve a list of pages in the current workspace. put_page( $page_name ) Stores the page content in the object. put_pagetag( $page, $tag ) Stores the page tags in the object. get_pagetags( $page ) Retrieves page tags stored in the object. die_on_put( $rc ) Tells the next put_page() to die with the supplied return code. accept( $mime_type ) Stores the requested mime type. order( $order ) Stores the requested order. get_taggedpages( $tag ) Retrieves the taggedpages stored in the object. set_taggedpages( $tag, $return ) Store the taggedpages return value in the object. This is not a real function, but it can make testing easier. json_verbose Set the json_verbose flag. response Retrieve a fake response object. AUTHOR
Luke Closs, "<luke.closs at socialtext.com>" COPYRIGHT &; LICENSE Copyright 2006 Luke Closs, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-01-09 Socialtext::Resting::Mock(3pm)
Man Page