Package Pyblio :: Module Callback :: Class Publisher
[show private | hide private]
[frames | no frames]

Type Publisher

object --+
         |
        Publisher

Known Subclasses:
Database, Database, Reader, ResultSet, ResultSet, ResultSetStore, RODict, RSDB, View, View

Base class for objects that wish to emit signals to registered clients.
Method Summary
  __init__(self)
Intialize the publisher
  emit(self, signal, *args)
Call this method to emit a signal.
  register(self, signal, callback, *args)
Clients interested in a given signal must register with this method.
  unregister(self, signal, callback)
Stop notifying events for the specified signal/callback pair.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self)
(Constructor)

Intialize the publisher
Overrides:
__builtin__.object.__init__

emit(self, signal, *args)

Call this method to emit a signal. Registered client will have their callbacks automatically invoked, with the specified arguments

register(self, signal, callback, *args)

Clients interested in a given signal must register with this method. The optional args are passed as the last arguments (after the emit arguments) to the callback.

unregister(self, signal, callback)

Stop notifying events for the specified signal/callback pair.

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net