Changeset 1495
- Timestamp:
- Nov 1, 2008, 4:27:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/validation.py
r1492 r1495 282 282 answer = dns.resolver.query(hostname, 'TXT') 283 283 txt = answer[0].strings[0] 284 if txt.startswith(' Reserved'):284 if txt.startswith('reserved'): 285 285 raise InvalidInput('name', name, 'The name you have requested has been %s. For more information, contact us at %s' % (txt, config.dns.contact)) 286 286
Note: See TracChangeset
for help on using the changeset viewer.