def all(self): return WorkerResource.all()
def __init__(self, worker_id): self.worker_id = worker_id super(Worker, self).__init__() self._worker = WorkerResource.find(worker_id)
def total_workers(self): return str(len(WorkerResource.all()))