• 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.

Item3773: Handlers don't have access to the full topic

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement Closed   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Several handlers in Plugins don't have access to the meta object. This makes checking permissions a real PITA, as the topic has to be re-read.

There's a workaround, and that's to use $context->{can_render_meta}, but that's a hack at best, and unreliable.

The right solution is to add $meta into the right places in the following handlers.

  • 'beforeCommonTagsHandler',
  • 'commonTagsHandler',
  • 'afterCommonTagsHandler',
  • 'afterEditHandler',

Proposed for 4.2, TWiki:Codev.PassMetaToHandlers

-- TWiki:Main/CrawfordCurrie - 16 Mar 2007

Checked in, but revertable until a release meeting agrees/times out.

CC

ItemTemplate
Summary Handlers don't have access to the full topic
ReportedBy TWiki:Main.CrawfordCurrie
Codebase

SVN Range TWiki-4.1.2, Sat, 03 Mar 2007, build 13043
AppliesTo Engine
Component

Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:13167
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback