Skip to content

Commit

Permalink
Item175: added bridges for Meta, Time and OopsException
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@1038 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 28, 2008
1 parent b9a116c commit cdb2931
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 2 deletions.
Expand Up @@ -25,7 +25,7 @@ Map TWIKIWEB to SYSTEMWEB and MAINWEB to USERSWEB - no Preference settings requi
Many thanks to the following sponsors for supporting this work:
* Acknowledge any sponsors here

| Plugin Author(s): | SvenDowideit |
| Plugin Author(s): | Sven Dowideit, Michael Daum, Crawford Currie |
| Copyright: | © SvenDowideit@fosiki.com |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL3 (Gnu General Public License)]] |
| Plugin Version: | %$VERSION% |
Expand Down
@@ -1,4 +1,4 @@
# Plugin for Foswiki - The Free Open Source Wiki, http://foswiki.org/
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
Expand Up @@ -10,6 +10,9 @@ lib/TWiki/UI.pm 0644 Perl module
lib/TWiki/Attrs.pm 0644 Perl module
lib/TWiki/Sandbox.pm 0644 Perl module
lib/TWiki/Prefs.pm 0644 Perl module
lib/TWiki/Meta.pm 0644 Perl module
lib/TWiki/OopsException.pm 0644 Perl module
lib/TWiki/Time.pm 0644 Perl module

#make TWiki a real web
data/TWiki/WebPreferences.txt 0644 make it a valid web
Expand Down
11 changes: 11 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/Meta.pm
@@ -0,0 +1,11 @@
package TWiki::Meta;

use Foswiki::Meta;

sub new {
shift;
return new Foswiki::Meta(@_);
}

1;

14 changes: 14 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/OopsException.pm
@@ -0,0 +1,14 @@
package TWiki::OopsException;
use Error;
use Assert;
use base 'Error';

use Foswiki::OopsException;

sub new {
shift;
return new Foswiki::OopsException(@_);
}

1;

23 changes: 23 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/Time.pm
@@ -0,0 +1,23 @@
package TWiki::Time;

# Bridge between TWiki::Time and Foswiki::Time

use strict;

use Foswiki::Time;

use vars qw( @ISOMONTH @WEEKDAY @MONTHLENS %MON2NUM );

@ISOMONTH = @Foswiki::Time::ISOMONTH;
@WEEKDAY = @Foswiki::Time::WEEKDAY;
@MONTHLENS = @Foswiki::Time::MONTHLENS;
@MON2NUM = @Foswiki::Time::MON2NUM;

sub parseTime { Foswiki::Time::parseTime(@_) }
sub formatTime { Foswiki::Time::formatTime(@_) }
sub _weekNumber { Foswiki::Time::_weekNumber(@_) }
sub formatDelta { Foswiki::Time::formatDelta(@_) }
sub parseInterval { Foswiki::Time::parseInterval(@_) }
sub _parseDuration { Foswiki::Time::_parseDuration(@_) }

1;

0 comments on commit cdb2931

Please sign in to comment.