51
51
if not VALID_URL_NAME.match(identifier):
53
53
"Exercise names must consist of an alphanumeric character "
54
"followed by any number of alphanumerics, ., +, - or _.")
56
56
if req.store.find(Exercise, id=unicode(identifier)).one():
57
57
raise BadRequest("An exercise with that URL name already exists.")