def clear_workspace_gisids(env): for fc in MC.get_gps_fcs(env, True): print fc MC.disable_editor_tracking(env, fc) arcpy.env.workspace = env clear_fc_gisids(env, fc) MC.enable_editor_tracking(env, fc)
def enable_workspace(local_logger, workspace): local_logger.info(workspace) for fc in [x for x in cc.list_all_fcs(workspace) if x != 'NISOURCE.GPSFMEJobLog']: if arcpy.Exists(fc): local_logger.info(fc) mc.enable_editor_tracking(workspace, fc)