本文整理汇总了Python中store.Store.removeWorker方法的典型用法代码示例。如果您正苦于以下问题:Python Store.removeWorker方法的具体用法?Python Store.removeWorker怎么用?Python Store.removeWorker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类store.Store
的用法示例。
在下文中一共展示了Store.removeWorker方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from store import Store [as 别名]
# 或者: from store.Store import removeWorker [as 别名]
#.........这里部分代码省略.........
print("# Gelieve de ID van de werknemer op te geven:")
temp_id = input("# ")
while True:
try:
temp_id = int(temp_id)
break
except:
print("# Gelieve de ID van de werknemer op te geven:")
temp_id = input("# ")
while self.stores.getWorker(temp_id) == False:
print("# Gelieve de ID van een bestaande werknemer op te geven:")
temp_id = input("# ")
while True:
try:
temp_id = int(temp_id)
break
except:
print("# Gelieve de ID van een bestaande werknemer op te geven:")
temp_id = input("# ")
#if isinstance(temp_id, int):
print("# Bent u zeker dat u deze gebruiker wilt verwijderen?")
command = input("# (Ja/Nee): ")
while str(command) not in ans_list:
print("lol")
command = input("# (Ja/Nee): ")
if command.lower() == "ja" or command.lower() == "j":
print("# Verwijderen van werknemer met ID [" + str(temp_id) + "]...")
self.stores.removeWorker(int(temp_id))
print("# Werknemer succesvol verwijderd.")
print("# Wilt u nog een Werknemer verwijderen?")
command = input("# (Ja/Nee): ")
while command not in ans_list:
print(" Verkeerde keuze.")
command = input("# (Ja/Nee): ")
if command.lower == "ja" or command.lower() == "j":
print("# Redirecting...")
time.sleep(1)
self.deleteEmployee()
else:
print("# Redirecting to the menu...")
time.sleep(2)
self.menu()
else:
print("# Redirecting to the menu...")
time.sleep(2)
self.menu()
def processQueue(self):
self.clear()
proc_orders = self.stores.getOrdersList()
new_orders = self.stores.getOrders()
print("################### Timecycle processing... ####################")
print("#")
print("# Processing orders and re-arranging...")
for i in range(len(proc_orders)):
emp_wl = proc_orders[i].getWorkloadEmp()
t_wl = proc_orders[i].getWorkloadT()