<% f = asform(input) id = f.id from os import path from merescoharvester.controlpanel.tools import checkName if id == '': redirect('/page/domains/show?error=No%20name%20given.') elif not checkName(id): redirect('/page/domains/show?error=Name%20is%20not%20valid.%20Only%20use%20alphanumeric%20characters.') elif path.isfile(filepath(id + ".domain")): redirect('/page/domains/show?error=The%20domain%20already%20exists.') else: target(filepath(id + ".domain")) %> <%escape_xml(id)%> <% redirect('/page/domain.edit/' + id + '.domain') # %>