<filename>simplewebpaste/security.py
from pyramid.security import (
    Allow,
    Everyone,
    )

USERS = {'test':'editor'}
GROUPS = {'editor':['group:editors']}
PASS = {'test':'<PASSWORD>.'}

class RootFactory(object):
    __acl__ = [ (Allow, Everyone, 'view'),
                (Allow, 'test', 'edit'), ]
    def __init__(self, request):
        pass

def groupfinder(userid, request):
    if userid in USERS:
        return GROUPS.get(userid, [])

<filename>simplewebpaste/security.py
from pyramid.security import (
    Allow,
    Everyone,
    )

USERS = {'test':'editor'}
GROUPS = {'editor':['group:editors']}
PASS = {'test':'<PASSWORD>.'}

class RootFactory(object):
    __acl__ = [ (Allow, Everyone, 'view'),
                (Allow, 'test', 'edit'), ]
    def __init__(self, request):
        pass

def groupfinder(userid, request):
    if userid in USERS:
        return GROUPS.get(userid, [])
