Ignore:
Timestamp:
May 14, 2006, 4:54:22 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Use Wiki::Toolkit. Note that CGI::Wiki::Plugin::Diff hasn't been converted yet,
so tests will be broken for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Feed.pm

    r784 r785  
    66$VERSION = '0.01';
    77
    8 use CGI::Wiki::Plugin::Atom;
    9 use CGI::Wiki::Plugin::RSS::ModWiki;
     8use Wiki::Toolkit::Feed::Atom;
     9use Wiki::Toolkit::Feed::RSS;
    1010use Time::Piece;
    1111use URI::Escape;
     
    2424    my $wiki = $args{wiki};
    2525   
    26     unless ( $wiki && UNIVERSAL::isa( $wiki, "CGI::Wiki" ) ) {
    27        croak "No CGI::Wiki object supplied.";
     26    unless ( $wiki && UNIVERSAL::isa( $wiki, "Wiki::Toolkit" ) ) {
     27       croak "No Wiki::Toolkit object supplied.";
    2828    }
    2929    $self->{wiki} = $wiki;
     
    8282 
    8383    unless ($self->{atom_maker}) {
    84         $self->{atom_maker} = CGI::Wiki::Plugin::Atom->new(
     84        $self->{atom_maker} = Wiki::Toolkit::Feed::Atom->new(
    8585            wiki                => $self->{wiki},
    8686            site_name           => $self->{site_name},
     
    103103
    104104    unless ($self->{rss_maker}) {
    105         $self->{rss_maker} = CGI::Wiki::Plugin::RSS::ModWiki->new(
     105        $self->{rss_maker} = Wiki::Toolkit::Feed::RSS->new(
    106106            wiki                => $self->{wiki},
    107107            site_name           => $self->{site_name},
     
    140140=head1 SYNOPSIS
    141141
    142     use CGI::Wiki;
     142    use Wiki::Toolkit;
    143143    use OpenGuides::Config;
    144144    use OpenGuides::Feed;
    145145
    146     my $wiki = CGI::Wiki->new( ... );
     146    my $wiki = Wiki::Toolkit->new( ... );
    147147    my $config = OpenGuides::Config->new( file => "wiki.conf" );
    148148    my $feed = OpenGuides::Feed->new( wiki       => $wiki,
     
    167167                                      og_version => '1.0', );
    168168
    169 C<wiki> must be a L<CGI::Wiki> object and C<config> must be an
     169C<wiki> must be a L<Wiki::Toolkit> object and C<config> must be an
    170170L<OpenGuides::Config> object.  Both of these arguments are mandatory.
    171171C<og_version> is an optional argument specifying the version of
     
    174174=item B<rss_maker>
    175175
    176 Returns a raw L<CGI::Wiki::Plugin::RSS::ModWiki> object created with the values you
     176Returns a raw L<Wiki::Toolkit::Feed::RSS> object created with the values you
    177177invoked this module with.
    178178
    179179=item B<atom_maker>
    180180
    181 Returns a raw L<CGI::Wiki::Plugin::Atom> object created with the values you
     181Returns a raw L<Wiki::Toolkit::Feed::Atom> object created with the values you
    182182invoked this module with.
    183183
     
    216216=over 4
    217217
    218 =item * L<CGI::Wiki>, L<CGI::Wiki::Plugin::RSS::ModWiki> and L<CGI::Wiki::Plugin::Atom>
     218=item * L<Wiki::Toolkit>, L<Wiki::Toolkit::Feed::RSS> and L<Wiki::Toolkit::Feed::Atom>
    219219
    220220=item * L<http://openguides.org/>
Note: See TracChangeset for help on using the changeset viewer.