old_contents: # oxy.io
  # File: oxyio/scripts/user.py
  # Desc: create users & superusers
  
  from oxyio.app import db, manager
  from oxyio.models.user import User
  
  
  def _add_user(is_keymaster=False):
      email = raw_input('# Email address: ')
      password = raw_input('# Password: ')
  
      user = User(email, password)
      user.is_keymaster = is_keymaster
  
      db.session.add(user)
      db.session.commit()
  
      return email
  
  
  @manager.command
  def add_user():
      '''Add normal users.'''
  
      email = _add_user()
      print '# User {0} added!'.format(email)
  
  
  @manager.command
  def add_keymaster():
      '''Add keymaster users (access-all-areas).'''
  
      email = _add_user(is_keymaster=True)
      print '# Keymaster {0} added!'.format(email)
  
new_contents: # oxy.io
  # File: oxyio/scripts/user.py
  # Desc: create users & superusers
  
  from oxyio.app import db, manager
  from oxyio.models.user import User
  
  
  @manager.command
  def add_user():
      '''
      Add users.
      '''
  
      email = raw_input('# Email address: ')
      password = raw_input('# Password: ')
  
      user = User(email, password)
  
      db.session.add(user)
      db.session.commit()
  
      print '# User {0} added!'.format(email)
  
subject: Remove add_keymaster manage function.