Package spade :: Package xmppd :: Package modules :: Module pubsub :: Class PSNode
[hide private]
[frames] | no frames]

Class PSNode

source code



Publish-Subscribe node.

TODO: Items must retain info about its publisher. We have only implemented
      owners and subscribes, not publishers. So publisher is always the onwer.

Instance Methods [hide private]
 
__init__(self, id, owner, type='leaf', parent=None, children=[], members={}, access_model='presence')
Constructs a PSNode.
source code
 
addItem(self, id, content) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, owner, type='leaf', parent=None, children=[], members={}, access_model='presence')
(Constructor)

source code 

Constructs a PSNode.

Parameters:
  • m - node id
  • id (string)
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)