def checkIdAvailable(self, id): """ Expands on ATFolder by checking for ids known to cause problems. This includes ids of objects in all fieldsets. """ result = ATFolder.checkIdAvailable(self, id) if result: result = id not in BAD_IDS if result: # check the fieldsets fieldsets = self.objectValues('FieldsetFolder') for fs in fieldsets: if id in fs.objectIds(): return False return result