You are here: Foswiki>Tasks Web>Item2360 (18 Nov 2009, SvenDowideit)Edit Attach

Item2360: the TOM syntax for getting a field of a particular topic has some inconsistency?

pencil
Priority: Low
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: SvenDowideit
I'm unsure if this is intentional

the Fn_IF.pm unit test contains

    push(
        @tests,
        {
            test   => "'$this->{test_web}.$topicName'/info.version = '1.1'",
            expect => "1"
        }
    );
    push(
        @tests,
        {
            test   => "'$this->{test_web}.$topicName'/info.rev = '1'",
            expect => "1"
        }
    );

whereas the docco in system.QuerySearch says

X/Y accesses Y from the topic specified by the value of X. X must evaluate to a topic name parent.name/(form.name='ExampleForm') will evaluate to true if (1) the topic has a parent, (2) the parent topic has the main form type ExampleForm.

the difference being that the unit test is testing / and the docco says \

if the syntax can be Web.Topic\fieldintopic and Web.Topic/fieldintopic then we should say so in the docco smile

-- SvenDowideit - 15 Nov 2009

Am I just blind? I can't see \ used anywhere in the docco?

-- CrawfordCurrie - 15 Nov 2009

me neither, I wonder what i was looking at frown, sad smile

-- SvenDowideit - 18 Nov 2009

ItemTemplate edit

Summary the TOM syntax for getting a field of a particular topic has some inconsistency?
ReportedBy SvenDowideit
Codebase trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Engine
Component
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 18 Nov 2009, SvenDowideit
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