You can override attr() to check the values before kicking up to _super(), but I think using the attributes plugin and writing a converter that checks for bad values is a cleaner approach.
↧