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

Item7108: LdapNgPlugin to be able to suppress $attribute automatically

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension   Enhancement Closed   n/a  

Edit Form Data

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

Detail

Let's say you provide format="| $cn | $telephonenumber |" to %LDAP{...}%. If Joe Schmoe matches the filter but does not have the telephonenumber attribute, the resulting line for hime is:
| Joe Schmoe | $telephonenumber |
You can eliminate ugly $telephonenumber in the result by giving clear="$telephonenumber" to %LDAP{...}%.

This is OK but it's cumbersome to specify clear. There should be an automatic way.

With above in mind, {Plugins}{LdapNgPlugin}{AutoClear} configuration parameter will be introduced. If it's true, $something in the format parameter will be processed as follows.

  • If the attributed named "something" exists in the current record, $something is replaced with that
  • $dollar is replaced with a special string
  • The standard special tokens ($percnt, $quot, etc.) are processed
  • $something is replaced with the null string ("")
  • The special string is replaced with $.

-- TWiki:Main/HideyoImazu - 2012-12-28

ItemTemplate
Summary LdapNgPlugin to be able to suppress $attribute automatically
ReportedBy TWiki:Main.HideyoImazu
Codebase ~twiki4
SVN Range TWiki-5.1.3-trunk, Thu, 27 Dec 2012, build 24584
AppliesTo Extension
Component

Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:24603 TWikirev:24604
TargetRelease n/a
ReleasedIn

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