• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

summary + patch says it all:

--- twikiplugins/DBCacheContrib/lib/TWiki/Contrib/DBCacheContrib.pm     (revision 7086)
+++ twikiplugins/DBCacheContrib/lib/TWiki/Contrib/DBCacheContrib.pm     (working copy)
@@ -21,7 +21,7 @@
   use TWiki::Contrib::DBCacheContrib;

-  $db = new TWiki::Contrib::DBCacheContrib::DBCache( $web ); # always done
+  $db = new TWiki::Contrib::DBCacheContrib( $web ); # always done
   $db->load(); # may be always done, or only on demand when a tag is parsed that needs it

   # the DB is a hash of topics keyed on their name
@@ -248,11 +248,11 @@
 =cut

 sub onReload {
-       #my ( $this, $@topics) = @_;
+       #my ( $this, @$topics) = @_;
 }

 sub _onReload {
-    my ( $this ) = @_;
+    my $this = shift;

     # Fill in parent relations
     foreach my $topic ( $this->getValues() ) {

Plus some minor docu fixes.


SVN 7262 CC

No, your checkin is not working as it does not call $this' instance method of onReload.

 sub _onReload {
-    my ( $this ) = @_;
+    my $this = shift;

     # Fill in parent relations
     foreach my $topic ( $this->getValues() ) {
@@ -262,7 +262,7 @@
         }
     }

-    onReload( @_ );
+    $this->onReload(@_);
 }

SVN 7274 MD

ItemTemplate
Summary DBCacheContrib: passing this pointer twice to onReload() function
ReportedBy MichaelDaum
AppliesTo Extension
Priority Normal
CurrentState Closed
WaitingFor

Checkins 7262 7274
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2005-11-02 - MichaelDaum
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback