Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
101 lines (76 loc) · 2.97 KB

README.rst

File metadata and controls

101 lines (76 loc) · 2.97 KB

gs.group.member.list

Lists of the members of a GroupServer group

Author: Michael JasonSmith
Contact: Michael JasonSmith <[email protected]>
Date: 2016-02-24
Organization: GroupServer.org
Copyright: This document is licensed under a Creative Commons Attribution-Share Alike 4.0 International License by OnlineGroups.net.

Introduction

The gs.group.member.list product provides some simple lists of group members on the members page and a query that can be used by other products.

Members Page

The Members page (members.html in the Group context) lists the members of the group. It is a simple list: only the profile photo, name, and membership status is listed.

The Members Directory [1] provides a more complete and complex page, that allows members to be sorted based on different fields.

Viewlet managers

The viewlet manager groupserver.MembersList organises the viewlets into tabs. The manager provides the gs.group.member.list.interfaces.IMemberList interface. In addition there is a viewlet manager for organising the JavaScript (if needed), which provides the gs.group.member.list.interfaces.IMemberListJavaScript interface.

Viewlets

There are three viewlets

Recently active:
The list of members who have posted recently.
Most active:
The list of members that have posted the most frequently.
All members:

Actually three lists:

  • The administrators
  • The normal members, and
  • The invited members (which is only shown in private and secret groups).

Query

The gs.group.member.list.MembersQuery class provides two methods.

posting_authors(siteId, groupId, limit=5):
Returns a list of distinct user-identifiers that represents the people that most recently posted to the group. Someone listed by this method may not be a group member, as people can leave the group.
top_posting_authors(siteId, groupId, limit=5):
Returns a list of distinct user-identifiers that represents the people in the group that post the most.

Resources

[1]See gs.group.member.directory <https://github.com/groupserver/gs.group.member.directory>