예제 #1
0
 def doSupplierConnect(self, arg):
     """
     Action method.
     """
     sc = supplier_connector.by_idurl(self.target_idurl)
     if not sc:
         sc = supplier_connector.create(self.target_idurl)
     sc.automat('connect')
     sc.set_callback('supplier_finder', self._supplier_connector_state)
예제 #2
0
 def doSupplierConnect(self, arg):
     """
     Action method.
     """
     sc = supplier_connector.by_idurl(self.target_idurl)
     if not sc:
         sc = supplier_connector.create(self.target_idurl)
     sc.automat('connect')
     sc.set_callback('supplier_finder', self._supplier_connector_state)
예제 #3
0
 def doConnectSuppliers(self, arg):
     """
     Action method.
     """
     self.connect_list = []
     for supplier_idurl in contactsdb.suppliers():
         if supplier_idurl == '':
             continue
         sc = supplier_connector.by_idurl(supplier_idurl)
         if sc is None:
             sc = supplier_connector.create(supplier_idurl)
         sc.set_callback(
             'fire_hire',
             self._supplier_connector_state_changed)
         self.connect_list.append(supplier_idurl)
         sc.automat('connect')