/usr/lib/python2.7/dist-packages/sagenb/notebook/user_db.py is in python-sagenb 1.0.1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # -*- coding: utf-8 -*
"""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
|