text: # This file is part of the OLD Sage notebook and is NOT actively developed,
  # maintained, or supported.  As of Sage v4.1.2, all notebook development has
  # moved to the separate Sage Notebook project:
  #
  # http://nb.sagemath.org/
  #
  # The new notebook is installed in Sage as an spkg (e.g., sagenb-0.3.spkg).
  #
  # Please visit the project's home page for more information, including directions on
  # obtaining the latest source code.  For notebook-related development and support,
  # please consult the sage-notebook discussion group:
  #
  # http://groups.google.com/group/sage-notebook
  
  """nodoctest
  """
  
  #############################################################################
  #       Copyright (C) 2007 William Stein <wstein@gmail.com>
  #  Distributed under the terms of the GNU General Public License (GPL)
  #  The full text of the GPL is available at:
  #                  http://www.gnu.org/licenses/
  #############################################################################
  
  class UserDatabase():
      def add_user(self, user, passwd, email):
          self[user] = UserRecord(user, passwd, email)
  
      def remove_user(self, user):
          del self[user]
  
  class UserRecord:
      def __init__(self, username, passwd, email):
          self.username = username
          self.passwd = passwd
          self.email = email
  