def person_list(): pm = PersonManager() people = pm.get_all() if people is None: click.echo("There are no people in the system") else: for p in people: click.echo('{} (req_phys={})'.format( p.name, p.require_physical_confirmation))
def person_list(): pm = PersonManager() people = pm.get_all() if people is None: click.echo("There are no people in the system") else: for p in people: click.echo('{} (req_phys={})'.format( p.name, p.require_physical_confirmation)) for tw in json.loads(p.time_windows.to_json()): print '--{}\n{}'.format(tw['location_name'], tw['ical'])