

def _set_coordinator_properties(coordinator, root, namespace):
    '\n  Get coordinator properties from coordinator XML\n\n  Set properties on ``coordinator`` with attributes from XML etree ``root``.\n  '
    coordinator.name = root.get('name')
    coordinator.timezone = root.get('timezone')
    coordinator.start = oozie_to_django_datetime(root.get('start'))
    coordinator.end = oozie_to_django_datetime(root.get('end'))
    (coordinator.frequency_unit, coordinator.frequency_number) = oozie_to_hue_frequency(root.get('frequency'))

dataset/ETHPy150Open cloudera/hue/apps/oozie/src/oozie/importlib/coordinators.py _set_coordinator_properties/original