Skip to content

Commit

Permalink
Item175:
Browse files Browse the repository at this point in the history
   * more bridge objs
   * work around for infinit loop in Tie::Scalar
   * uped $TWiki::Plugins::VERSION to TWiki-4.2.3



git-svn-id: http://svn.foswiki.org/trunk@834 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 20, 2008
1 parent fcbbc11 commit 5d67154
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
16 changes: 16 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/Attrs.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package TWiki::Attrs;

# Bridge between TWiki::Attra and Foswiki::Attrs

use strict;

use Foswiki::Attrs;

sub new { Foswiki::Attrs::new(@_) }
sub isEmpty { Foswiki::Attrs::isEmpty(@_) }
sub remove { Foswiki::Attrs::remove(@_) }
sub stringify { Foswiki::Attrs::stringify(@_) }
sub extractValue { Foswiki::Attrs::extractValue(@_) }
sub get { Foswiki::Attrs::get(@_) }

1;
4 changes: 2 additions & 2 deletions TWikiCompatibilityPlugin/lib/TWiki/Plugins.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package TWiki::Plugins;
use Foswiki::Plugins;

# Compatible version of TWiki::Plugins
our $VERSION = 1.026;
our $VERSION = '1.2';

# Access to $TWiki::Plugins::SESSION is via a tie to $Foswiki::Plugins::SESSION
{
Expand All @@ -14,6 +14,6 @@ our $VERSION = 1.026;
sub FETCH { return $Foswiki::Plugins::SESSION; }
};

tie($TWiki::Plugins::SESSION, 'TWiki::Plugins::SESSION_TIE');
#tie($SESSION, 'TWiki::Plugins::SESSION_TIE');

1;
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ lib/TWiki/Plugins/TWikiCompatibilityPlugin.pm 0644 Perl module
lib/TWiki/Plugins/TWikiCompatibilityPlugin/Config.spec configuration defaults
lib/TWiki/Plugins.pm 0644 Perl module
lib/TWiki/Func.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
27 changes: 27 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/Prefs.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package TWiki::Prefs;

# Bridge between TWiki::Prefs and Foswiki::Prefs

use strict;

use Foswiki::Prefs;


sub new { Foswiki::Prefs::new(@_) }
sub finish { Foswiki::Prefs::finish(@_) }
sub pushPreferences { Foswiki::Prefs::pushPreferences(@_) }
sub pushWebPreferences { Foswiki::Prefs::pushWebPreferences(@_) }
sub pushGlobalPreferences { Foswiki::Prefs::pushGlobalPreferences(@_) }
sub pushGlobalPreferencesSiteSpecific { Foswiki::Prefs::pushGlobalPreferencesSiteSpecific(@_) }
sub pushPreferenceValues { Foswiki::Prefs::pushPreferenceValues(@_) }
sub mark { Foswiki::Prefs::mark(@_) }
sub restore { Foswiki::Prefs::restore(@_) }
sub getPreferencesValue { Foswiki::Prefs::getPreferencesValue(@_) }
sub isFinalised { Foswiki::Prefs::isFinalised(@_) }
sub getTopicPreferencesValue { Foswiki::Prefs::getTopicPreferencesValue(@_) }
sub getTextPreferencesValue { Foswiki::Prefs::getTextPreferencesValue(@_) }
sub getWebPreferencesValue { Foswiki::Prefs::getWebPreferencesValue(@_) }
sub setPreferencesValue { Foswiki::Prefs::setPreferencesValue(@_) }
sub stringify { Foswiki::Prefs::stringify(@_) }

1;
17 changes: 17 additions & 0 deletions TWikiCompatibilityPlugin/lib/TWiki/Sandbox.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package TWiki::Sandbox;

# Bridge between TWiki::Sandbox and Foswiki::Sandbox

use strict;

use Foswiki::Sandbox;

sub TRACE { 0 }
sub new { Foswiki::Sandbox::new(@_) }
sub finish { Foswiki::Sandbox::finish(@_) }
sub untaintUnchecked { Foswiki::Sandbox::untaintUnchecked(@_) }
sub normalizeFileName { Foswiki::Sandbox::normalizeFileName(@_) }
sub sanitizeAttachmentName { Foswiki::Sandbox::sanitizeAttachmentName(@_) }
sub sysCommand { Foswiki::Sandbox::sysCommand(@_) }

1;

0 comments on commit 5d67154

Please sign in to comment.