Skip to content

groupserver/gs.group.messages.topic.digest.base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gs.group.messages.topic.digest.base

The digest of topics

Author

Bill Bushey; Michael JasonSmith

Contact

Bill Bushey <wbushey@gmail.com>

Date

2015-04-27

Organization

GroupServer.org

Copyright

This document is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License by OnlineGroups.Net.

Introduction

The gs.group.messages.topic.digest.base product provides the core infrastructure for creating and sending topic digests in a GroupServer group. The notifier constructs the digests and places them in an email message. The messages are normally constructed from various digest viewlets. This process is coordinated by the Digest groups page and the Send digest page

Digest groups

The Digest groups form, gs-group-messages-topic-digest-groups.html in the site context, returns a list of groups that can possibly receive a digest as a JSON object. It uses gs.auth.token1 for authentication.

The list is calculated by looking up the groups that have a member on digest mode (they have a digest entry in the setting column of the the email_setting table). The returned JSON object is a list of site-identifiers and group-identifiers that can be used with the send digest page.

Send digest

A site wide form is available at gs-group-messages-topic-digest-send.html to initiate the sending of a topics digest to a group. It uses gs.auth.token 2 for authentication.

The form creates notifier for the group on the site, and calls notify().

Notifier

The notifier for a group creates some multiadaptors to create the messages3. It adapts the group and request to an object that conforms to the gs.group.messages.topic.digest.base.interfaces.ITopicsDigestNotifier. The adaptors are sorted by their weight, and the first one is selected. The subject, plain-text message and HTML form of the message is created from the adaptor, and then this is sent to all group members that wish to receive the digest.

GroupServer ships with two digests by default:

Digest viewlets

The gs.group.messages.topic.digest.base.viewlets.TopicsDigestViewlet is a gs.group.base.GroupViewlet that provides the topicsDigest property. This property is an instance of the gs.group.messages.topic.digest.base.topicdigest.BaseTopicsDigest class, that provides a list of topics to appear in the digest.

Resources


  1. See <https://source.iopen.net/groupserver/gs.auth.token>

  2. See <https://source.iopen.net/groupserver/gs.auth.token>

  3. See Looking Up Adapters Using Multiple Objects for more on multiadaptors.

About

The Topic Digest notification.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages