The foswiki svn repository will become read-only on Friday 8/8. Developers should register for a http://github.com/ account for commit access to foswiki.

Item9616: add new 1.1 Group topic forward compatibility to 1.0.10

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine Groups  
Created a group topic on 1.1 using the API and then copied the topic to 1.0.9. The group iterator didn't appear to find any groups.

Code tested:
   if ( Foswiki::Func::isGroup($name) ) {
        return if exists $groups->{$name};    # don't reprocess groups
        $groups->{$name} = $name;

        my $it = Foswiki::Func::eachGroupMember($name);
        while ( $it->hasNext() ) {
            my $user = $it->next();
            processName( $user, $users, $groups );
        }
    }

Group tested was:
META:TOPICINFO{author="BaseUserMapping_333" comment="reprev" date="1282943579" format="1.1" reprev="1" version="1"}%

Edit this topic to add a description to the !NotifyGroup

-- GeorgeClark - 04 Sep 2010

ok, I'm going to make 1.0.10 search only for topic="*Group" rather than that and "Set GROUP =" so taht 1.0.10 is compatible with 1.1.0.

looks like I incorrectly ass-u-me-d that I'd added the getPrefs(GROUP) to tmwiki years ago - when this is actually a new 1.1 thing - I'll continue to work to make 1.0.10 compaitble before i release it.

  1. search for topic=*Group
  2. use getPref(GROUP)
  3. add GroupView topic to topicusermapping

forward compatibility commited.

-- SvenDowideit - 04 Sep 2010
 

ItemTemplate edit

Summary add new 1.1 Group topic forward compatibility to 1.0.10
ReportedBy GeorgeClark
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component Groups
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:8880 Foswikirev:8881
TargetRelease patch
ReleasedIn 1.0.10
Topic revision: r9 - 08 Sep 2010, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License