I don't think it is 'appropriate'. I just don't find it punishment. As much as I hate the school system, they have to deal with the worst from both students and parents now-a-days.. and kids who obey get caught up in that system. It is the parents who have the responsibility to put their foot down.
My sister's school tried to call us up and demand we bring her clothes because they deemed her inappropriate with what she was wearing. She had on a normal-length skirt (mid-thigh area) and a tank top with a shrug. I had to leave my class early, drive all the way over there, to put a boot in their ass and tell them that the next time that they imply that I allow my sister to dress like a harlot will be the last time they deal with me since I'll go straight to the school board. I told them "I just Walked In Here and I saw shorts shorter than that skirt, cleavage showing, and pants sagging below the asses of little boys running around here. Leave my sister alone, we check what she is wearing before she leaves, and I'm not going to have you making fun of her height and using it as a 'safe' weapon to target someone who MIGHT comply instead of trying to deal with a difficult student that you KNOW won't change their clothes."
It isn't my sister's fault that she had to deal with all of that, but it was my job to be the buffer between her and her school. That's the price we pay for 'free' crap education. She wasn't being punished for having to work through me to get things done--but that was how we had to play the game.