Пример #1
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (gmaster_builder('xsync')(self,
                                      slave), gmaster_builder()(self,
                                                                slave),
             gmaster_builder('changeloghistory')(self, slave))
Пример #2
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (
         gmaster_builder("xsync")(self, slave),
         gmaster_builder()(self, slave),
         gmaster_builder("changeloghistory")(self, slave),
     )
Пример #3
0
    def service_loop(self, *args):
        """enter service loop

        - if slave given, instantiate GMaster and
          pass control to that instance, which implements
          master behavior
        - else do that's what's inherited
        """
        if args:
            gmaster_builder()(self, args[0]).crawl_loop()
        else:
            sup(self, *args)
Пример #4
0
    def service_loop(self, *args):
        """enter service loop

        - if slave given, instantiate GMaster and
          pass control to that instance, which implements
          master behavior
        - else do that's what's inherited
        """
        if args:
            gmaster_builder()(self, args[0]).crawl_loop()
        else:
            sup(self, *args)
Пример #5
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (gmaster_builder('xsync')(self, slave),
             gmaster_builder()(self, slave))