def validate_not_part_of_system_pack(resource_db):
 pack = getattr(resource_db, 'pack', None)
 if (pack == SYSTEM_PACK_NAME):
  msg = "Resources belonging to system level packs can't be manipulated"
  raise ValueValidationException(msg)
 return resource_db

def validate_not_part_of_system_pack ( resource_db ) : pack = getattr ( resource_db , 'pack' , None ) if ( pack == SYSTEM_PACK_NAME ) : msg = "Resources belonging to system level packs can't be manipulated" raise ValueValidationException ( msg ) return resource_db
validate that the provided resource database object doesnt belong to a system level pack .