Changeset View
Changeset View
Standalone View
Standalone View
wallace/module_resources.py
Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | """ | ||||
For each resource, determine if any of the events in question are in conflict. | For each resource, determine if any of the events in question are in conflict. | ||||
""" | """ | ||||
# Store the (first) conflicting event(s) alongside the resource information. | # Store the (first) conflicting event(s) alongside the resource information. | ||||
start = time.time() | start = time.time() | ||||
num_messages = 0 | num_messages = 0 | ||||
available_resource = None | available_resource = None | ||||
for resource in resources.keys(): | for resource in resources: | ||||
# skip this for resource collections | # skip this for resource collections | ||||
if 'kolabtargetfolder' not in resources[resource]: | if 'kolabtargetfolder' not in resources[resource]: | ||||
continue | continue | ||||
# sets the 'conflicting' flag and adds a list of conflicting events found | # sets the 'conflicting' flag and adds a list of conflicting events found | ||||
try: | try: | ||||
num_messages += read_resource_calendar(resources[resource], itip_events) | num_messages += read_resource_calendar(resources[resource], itip_events) | ||||
# pylint: disable=broad-except | # pylint: disable=broad-except | ||||
▲ Show 20 Lines • Show All 1,086 Lines • Show Last 20 Lines |