<filename>P3/app/model.py
from pickleshare import *

db=PickleShareDB('miBD')

def checkUser(user):
    return user in db

def getUser(user):
    if checkUser(user):
        return db[user]
    return none

def addUser(user,data):
    if not checkUser(user):
        db[user]=data

def delUser(user):
    del db[user]


<filename>P3/app/model.py
from pickleshare import *

db=PickleShareDB('miBD')

def checkUser(user):
    return user in db

def getUser(user):
    if checkUser(user):
        return db[user]
    return none

def addUser(user,data):
    if not checkUser(user):
        db[user]=data

def delUser(user):
    del db[user]

