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)
 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)
Exemple #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')