on_group_list Event

Fired while group data transfers (during group listings).

Syntax

class NNTPGroupListEventParams(object):
  @property
  def group() -> str: ...
  @property
  def first_article() -> int: ...
  @property
  def last_article() -> int: ...
  @property
  def can_post() -> bool: ...

# In class NNTP:
@property
def on_group_list() -> Callable[[NNTPGroupListEventParams], None]: ...
@on_group_list.setter
def on_group_list(event_hook: Callable[[NNTPGroupListEventParams], None]) -> None: ...

Remarks

The on_group_list event is fired for every group reported by the news_server when the list_groups or list_new_groups method is called.

The Group parameter shows the name of the group.

The FirstArticle and LastArticle parameters contain the article numbers for the first and last articles in the group.

The CanPost is True or False depending on whether article posting is allowed in the group specified by Group.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]