Ejemplo n.º 1
0
 def init_handlers():
     # Init the handlers first
     for (_ctype, mod) in c_handlers.items():
         if mod in c_handlers.initialized:
             # Avoid initiating the same module twice (if said module
             # is registered to more than one content-type).
             continue
         handlers.call_begin(mod, data, frequency)
         c_handlers.initialized.append(mod)
Ejemplo n.º 2
0
 def init_handlers():
     # Init the handlers first
     for (_ctype, mod) in c_handlers.items():
         if mod in c_handlers.initialized:
             # Avoid initing the same module twice (if said module
             # is registered to more than one content-type).
             continue
         handlers.call_begin(mod, data, frequency)
         c_handlers.initialized.append(mod)