def user(value, message='Invalid nick'):
  value = encoding.smart_unicode(value)
  if not value.endswith('@%s' % settings.NS_DOMAIN):
    value = '%s@%s' % (value, settings.NS_DOMAIN)
  
  match = USER_COMPILED.match(value)
  if not match:
    raise exception.ValidationError(message)

  return value
Decorator to create a command line subcommand for a function.
dataset/ETHPy150Open CollabQ/CollabQ/common/clean.py/user--crossover with--dataset/ETHPy150Open splunk/splunk-webframework/contrib/aaargh/aaargh.py/App.cmd