Class t.n.d.NewsShelf:

Part of twisted.news.database View Source View In Hierarchy

Implements interfaces: twisted.news.database.INewsStorage
A NewStorage implementation using Twisted's dirdbm persistence module.
Method __init__ Undocumented
Method initialize Undocumented
Method addGroup Undocumented
Method addSubscription Undocumented
Method addModerator Undocumented
Method listRequest Returns a deferred whose callback will be passed a list of 4-tuples
Method subscriptionRequest Returns a deferred whose callback will be passed the list of
Method getModerator Undocumented
Method notifyModerator Undocumented
Method postRequest Returns a deferred whose callback will be invoked if 'message'
Method overviewRequest Returns a deferred whose callback will be passed the a list of
Method xoverRequest Returns a deferred whose callback will be passed a list of xover
Method xhdrRequest Returns a deferred whose callback will be passed a list of XHDR data
Method listGroupRequest Returns a deferred whose callback will be passed a two-tuple of
Method groupRequest Returns a deferred whose callback will be passed a five-tuple of
Method articleExistsRequest Returns a deferred whose callback will be passed with a true value
Method articleRequest Returns a deferred whose callback will be passed a file-like object
Method headRequest Returns a deferred whose callback will be passed the header for
Method bodyRequest Returns a deferred whose callback will be passed the body for
def __init__(self, mailhost, path): (source)
Undocumented
def initialize(self): (source)
Undocumented
def addGroup(self, name, flags): (source)
Undocumented
def addSubscription(self, name): (source)
Undocumented
def addModerator(self, group, email): (source)
Undocumented
def listRequest(self): (source)
Returns a deferred whose callback will be passed a list of 4-tuples containing (name, max index, min index, flags) for each news group
def subscriptionRequest(self): (source)
Returns a deferred whose callback will be passed the list of recommended subscription groups for new server users
def getModerator(self, groups): (source)
Undocumented
def notifyModerator(self, moderator, article): (source)
Undocumented
def postRequest(self, message): (source)
Returns a deferred whose callback will be invoked if 'message' is successfully posted to one or more specified groups and whose errback will be invoked otherwise.
def overviewRequest(self): (source)
Returns a deferred whose callback will be passed the a list of headers describing this server's overview format.
def xoverRequest(self, group, low, high): (source)
Returns a deferred whose callback will be passed a list of xover headers for the given group over the given range. If low is None, the range starts at the first article. If high is None, the range ends at the last article.
def xhdrRequest(self, group, low, high, header): (source)
Returns a deferred whose callback will be passed a list of XHDR data for the given group over the given range. If low is None, the range starts at the first article. If high is None, the range ends at the last article.
def listGroupRequest(self, group): (source)
Returns a deferred whose callback will be passed a two-tuple of (group name, [article indices])
def groupRequest(self, group): (source)
Returns a deferred whose callback will be passed a five-tuple of (group name, article count, highest index, lowest index, group flags)
def articleExistsRequest(self, id): (source)
Returns a deferred whose callback will be passed with a true value if a message with the specified Message-ID exists in the database and with a false value otherwise.
def articleRequest(self, group, index, id=None): (source)
Returns a deferred whose callback will be passed a file-like object containing the full article text (headers and body) for the article of the specified index in the specified group, and whose errback will be invoked if the article or group does not exist. If id is not None, index is ignored and the article with the given Message-ID will be returned instead, along with its index in the specified group.
def headRequest(self, group, index, id=None): (source)
Returns a deferred whose callback will be passed the header for the article of the specified index in the specified group, and whose errback will be invoked if the article or group does not exist.
def bodyRequest(self, group, index, id=None): (source)
Returns a deferred whose callback will be passed the body for the article of the specified index in the specified group, and whose errback will be invoked if the article or group does not exist.
API Documentation for twisted, generated by pydoctor.