Home | Trees | Index | Help |
---|
Package twisted :: Package cred :: Module service :: Class Service |
|
OriginalAccessor
--+ |Versioned
--+ |ApplicationService
--+ | Service
MailService
,
Service
,
MailsicleService
I am a service that internet applications interact with.
I represent a set of abstractions which users may interact with over a specified protocol.See also: twisted.spread.pb.Service
Method Summary | |
---|---|
Create me, attached to the given application. | |
(inherited from OriginalAccessor )
| |
(inherited from OriginalAccessor )
| |
Get state, adding a version number to it on its way out. (inherited from Versioned )
| |
(inherited from OriginalAccessor )
| |
(inherited from Versioned )
| |
Add a perspective to this Service. | |
Cache a perspective loaded from an external data source. | |
Create a perspective from self.perspectiveClass and add it to this service. | |
Have my parent disown me. (inherited from ApplicationService )
| |
(inherited from ApplicationService )
| |
A hook to use if the identity is required when getting the perspective. | |
Return a perspective that represents a user for this service. | |
Return a Deferred which is a request for a perspective on this service. | |
The name of this service. | |
Get a string describing the type of this service. | |
Load a perspective from an external data-source. | |
*actually* del self.k without incurring side-effects. (inherited from OriginalAccessor )
| |
*actually* set self.k to v without incurring side-effects. (inherited from OriginalAccessor )
| |
(inherited from ApplicationService )
| |
(inherited from ApplicationService )
| |
Set my parent, which must be a service collection of some kind. (inherited from ApplicationService )
| |
This call is made as a service starts up. (inherited from ApplicationService )
| |
This call is made before shutdown. (inherited from ApplicationService )
| |
Uncache a perspective loaded from an external data source. | |
(inherited from ApplicationService )
| |
(internal) Do a version upgrade. (inherited from Versioned )
|
Class Variable Summary | |
---|---|
class |
IService
|
class |
Perspective
|
NoneType |
serviceName
|
NoneType |
serviceType
|
Method Details |
---|
__init__(self,
serviceName,
serviceParent=None,
authorizer=None,
application=None)
|
addPerspective(self, perspective)Add a perspective to this Service. |
cachePerspective(self, perspective)Cache a perspective loaded from an external data source. Perspectives that were 'loaded' from memory will not be uncached. |
createPerspective(self, name)Create a perspective from self.perspectiveClass and add it to this service. |
getPerspectiveForIdentity(self, name, identity)A hook to use if the identity is required when getting the perspective. |
getPerspectiveNamed(self, name)Return a perspective that represents a user for this service. (DEPRECATED) Raises a KeyError if no such user exists. Override this method to provide dynamic instantiation of perspectives. It is only deprecated to call this method directly, not to override it; when you need to get a Perspective, call getPerspectiveRequest. |
getPerspectiveRequest(self, name)Return a Deferred which is a request for a perspective on this service. |
getServiceName(self)The name of this service. |
getServiceType(self)Get a string describing the type of this service. |
loadPerspective(self, name)Load a perspective from an external data-source. If no such data-source exists, return None. Implement this if you want to load your perspectives from somewhere else (e.g. LDAP or a database). It is not recommended to call this directly, since getPerspectiveRequest provides management of caching perspectives. |
uncachePerspective(self, perspective)Uncache a perspective loaded from an external data source. Perspectives that were 'loaded' from memory will not be uncached. |
Class Variable Details |
---|
IServiceIService = twisted.cred.service.IService
|
PerspectivePerspective = twisted.cred.perspective.Perspective
|
serviceName
|
serviceType
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:06 2003 | http://epydoc.sf.net |