[GRASS-SVN] r55394 - grass/trunk/lib/python/pydispatch

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 15 10:12:55 PDT 2013


Author: wenzeslaus
Date: 2013-03-15 10:12:55 -0700 (Fri, 15 Mar 2013)
New Revision: 55394

Modified:
   grass/trunk/lib/python/pydispatch/pydispatchlib.dox
Log:
pythonlib/pydispatch: documentation intro

Modified: grass/trunk/lib/python/pydispatch/pydispatchlib.dox
===================================================================
--- grass/trunk/lib/python/pydispatch/pydispatchlib.dox	2013-03-15 11:14:33 UTC (rev 55393)
+++ grass/trunk/lib/python/pydispatch/pydispatchlib.dox	2013-03-15 17:12:55 UTC (rev 55394)
@@ -1,4 +1,4 @@
-/*! \page pydispatch Customized PyDispatcher library
+/*! \page pydispatch PyDispatcher library and Signal API
 
 by GRASS Development Team (http://grass.osgeo.org)
 
@@ -7,6 +7,8 @@
 
 \section pydispatchIntro Introduction
 
+Simple function calls are not sufficient in the GUI, event driven and large environment with many persistent objects because using simple function calls would lead to tightly coupled code. Thus, some better mechanism is needed such as Observer design pattern. We decided to use Signal system which is similar to Signals used in PyQt and other frameworks. As the underlying library, we have chosen PyDispatcher because it provides very general API which enables to implement Signal API, wide and robust functionality which makes implementation and use of Signals easier.
+
 Files dispatcher.py, errors.py, robustapply.py, robust.py and saferef.py are
 part of the original PyDispatcher library.
 File signal.py is the object-based easy-to-use interface created for GRASS.
@@ -18,9 +20,7 @@
 
 Signals and PyDispatcher do not depend on wxPython, so it can be used even for non-GUI code (this allows to use controller classes to create command line tools).
 
-The purpose of the Signals and PyDispather is to avoid tight bindings between classes.
 
-
 \section pydispatchSignal Signal addition to the original PyDispatcher
 
 The python.pydispatch.signal.Signal (grass.pydispatch.signal.Signal) class is the simplified API to the PyDispatcher library.



More information about the grass-commit mailing list