You are here: Foswiki>Tasks Web>Item5916 (08 Jan 2009, KwangErnLiew)Edit Attach

Item5916: Add IsEmpty To IF conditions

Priority: Enhancement
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Engine
Reported By: TWiki:Main.RafaelAlvarez
Waiting For: TWiki:Main.RafaelAlvarez
Last Change By: KwangErnLiew
-- TWiki:Main/RafaelAlvarez - 11 Aug 2008

Hi Rafael,

TWiki::Request::queryParam() should be used only by engines during its preparation phase. TWiki core and plugins should use TWiki::Request::param(), that doesn't distinguish between query and body parameters, with the same semantics as CGI::param() wink

-- TWiki:Main.GilmarSantosJr - 11 Aug 2008

I misunderstood the documentation. I'll update this tonight. Thanks smile

-- TWiki:Main.RafaelAlvarez - 11 Aug 2008

Raf, the isempty operator applies only to the %IF statement. If you implemented it in the TWiki::Query base class, then it would also be available to queries. This would affect both the implementation and the documentation, and there may be reasons you chose not to do this, but i thought I'd mention it anyway.

-- CrawfordCurrie - 12 Aug 2008

What is missing on this one? It seems like a Waiting for Release to me.

If there is an additional feature to be added please raise a new Task item.

I this in Waiting For Release so it gets into the release note of 1.0.0.

Reopen if my assessment is wrong.

-- KennethLavrsen - 11 Dec 2008

Kenneth, this is in fact, ready for release. The functionality that I originally proposed is coded and unit-tested.

What is "missing" is the suggestion by Crawfordto move it from IF to QUERY so it can be used by searches. I plan to do that after 1.0.

I'll create another task to track that

-- RafaelAlvarez - 11 Dec 2008

ItemTemplate edit

Summary Add IsEmpty To IF conditions
ReportedBy TWiki:Main.RafaelAlvarez
Codebase trunk
SVN Range TWiki-5.0.0, Sun, 03 Aug 2008, build 17280
AppliesTo Engine
Priority Enhancement
CurrentState Closed
WaitingFor TWiki:Main.RafaelAlvarez
Checkins TWikirev:17405 TWikirev:17409
TargetRelease patch
ReleasedIn 1.0.0
Topic revision: r11 - 08 Jan 2009, KwangErnLiew
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy