view discusssions/member.py @ 0:c904249afb04

initial commit of discussions
author k0s <k0scist@gmail.com>
date Sat, 02 Jan 2010 13:36:23 -0500
parents
children
line wrap: on
line source

{ 'email': ,
  <arbitrary metadata: name, birthday, address, favorite ice cream, etc>
  'password': 'secret',
  
}

# you sign in with an email address
# email addresses should be multiple

def Member(object):

    def role(self, discussion):
        """
        member's role with respect to discussion or conference;
        returns 'admin', 'member', or None
        """

    def add(self, discussion):
        """adds a member to a discussion"""