Commits

Ginés Martínez Sánchez committed 64e9c1a Draft

developing wsgi server

  • Participants
  • Parent commits 146b175

Comments (0)

Files changed (2)

ginsfsm/gaplic.py

     add_global_thread,
     add_global_subprocess,
     get_gaplic_by_thread_ident,
-    )
+)
 from ginsfsm.compat import (
     string_types,
     iterkeys_,
-    )
+)
 from ginsfsm.deferred import (
     DeferredList,
-    )
+)
 from ginsfsm.c_sock import (
     poll_loop,
     close_all_sockets,
     _poll,
     GSock,
-    )
+)
 from ginsfsm.gobj import (
     GObj,
-    )
+)
 
 
 def _start_timer(seconds):
         """Filter to broadcast_event function to check the owner of events.
         """
         self.global_settings = None
+        """This global settings will be set to all new created gobj.
+        """
 
         self._dl_subscriptions = set()      # uauuu, how many fans!!
         self._some_subscriptions = False
                     ''' cannot register_unique_gobj '%s' ''' % (name))
 
         # What must be the first? arguments or global settings??
+        if self.global_settings is not None:
+            # global not win.
+            gobj.overwrite_parameters(0, **self.global_settings)
+        # particular wins.
         gobj.write_parameters(**kw)
-        if self.global_settings is not None:
-            # global wins.
-            gobj.overwrite_parameters(0, **self.global_settings)
 
         if parent is not None:
             parent._add_child(gobj)
     def overwrite_few_parameters(self, parameter_list, **settings):
         """ The parameters in settings must be defined in the gobj.
 
-        :param parameters: write only the parameters in ``parameter_list``.
+        :param parameter_list: write only the parameters in ``parameter_list``.
 
         :param settings: parameters and their values.