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/RDF.pm

    r767 r785  
    66$VERSION = '0.09';
    77
    8 use CGI::Wiki::Plugin::RSS::ModWiki;
    98use Time::Piece;
    109use URI::Escape;
     
    2322    my $wiki = $args{wiki};
    2423   
    25     unless ( $wiki && UNIVERSAL::isa( $wiki, "CGI::Wiki" ) ) {
    26       croak "No CGI::Wiki object supplied.";
     24    unless ( $wiki && UNIVERSAL::isa( $wiki, "Wiki::Toolkit" ) ) {
     25      croak "No Wiki::Toolkit object supplied.";
    2726    }
    2827    $self->{wiki} = $wiki;
     
    106105   
    107106    # Make a Time::Piece object.
    108     my $timestamp_fmt = $CGI::Wiki::Store::Database::timestamp_fmt;
     107    my $timestamp_fmt = $Wiki::Toolkit::Store::Database::timestamp_fmt;
    109108
    110109    if ( $timestamp ) {
     
    228227=head1 SYNOPSIS
    229228
    230     use CGI::Wiki;
     229    use Wiki::Toolkit;
    231230    use OpenGuides::Config;
    232231    use OpenGuides::RDF;
    233232
    234     my $wiki = CGI::Wiki->new( ... );
     233    my $wiki = Wiki::Toolkit->new( ... );
    235234    my $config = OpenGuides::Config->new( file => "wiki.conf" );
    236235    my $rdf_writer = OpenGuides::RDF->new( wiki   => $wiki,
     
    250249                                           config => $config );
    251250
    252 C<wiki> must be a L<CGI::Wiki> object and C<config> must be an
     251C<wiki> must be a L<Wiki::Toolkit> object and C<config> must be an
    253252L<OpenGuides::Config> object.  Both arguments mandatory.
    254253
     
    269268B<Note:> Some of the fields emitted by the RDF/XML generator are taken
    270269from the node metadata. The form of this metadata is I<not> mandated
    271 by L<CGI::Wiki>. Your wiki application should make sure to store some or
     270by L<Wiki::Toolkit>. Your wiki application should make sure to store some or
    272271all of the following metadata when calling C<write_node>:
    273272
     
    296295=over 4
    297296
    298 =item * L<CGI::Wiki>
     297=item * L<Wiki::Toolkit>
    299298
    300299=item * L<http://openguides.org/>
Note: See TracChangeset for help on using the changeset viewer.