Logo Search packages:      
Sourcecode: zine version File versions  Download package

def zine::application::Zine::connect_event (   self,
  event,
  callback,
  position = 'after' 
)

Connect a callback to an event.  Per default the callback is
appended to the end of the handlers but handlers can ask for a higher
privilege by setting `position` to ``'before'``.

Example usage::

    def on_before_metadata_assembled(metadata):
metadata.append('<!-- IM IN UR METADATA -->')

    def setup(app):
app.connect_event('before-metadata-assembled',
                  on_before_metadata_assembled)

Definition at line 1051 of file application.py.

01051                                                               :
        """Connect a callback to an event.  Per default the callback is
        appended to the end of the handlers but handlers can ask for a higher
        privilege by setting `position` to ``'before'``.

        Example usage::

            def on_before_metadata_assembled(metadata):
                metadata.append('<!-- IM IN UR METADATA -->')

            def setup(app):
                app.connect_event('before-metadata-assembled',
                                  on_before_metadata_assembled)
        """
        self._event_manager.connect(event, callback, position)

    def list_parsers(self):


Generated by  Doxygen 1.6.0   Back to index