annotate discusssions/member.py @ 3:f09ba04b2e29 default tip

adding notes about -> collaborative documents
author Jeff Hammel <k0scist@gmail.com>
date Fri, 26 Mar 2010 14:03:44 -0700
parents c904249afb04
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
1 { 'email': ,
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
2 <arbitrary metadata: name, birthday, address, favorite ice cream, etc>
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
3 'password': 'secret',
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
4
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
5 }
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
6
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
7 # you sign in with an email address
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
8 # email addresses should be multiple
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
9
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
10 def Member(object):
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
11
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
12 def role(self, discussion):
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
13 """
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
14 member's role with respect to discussion or conference;
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
15 returns 'admin', 'member', or None
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
16 """
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
17
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
18 def add(self, discussion):
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
19 """adds a member to a discussion"""
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
20
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
21
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
22
c904249afb04 initial commit of discussions
k0s <k0scist@gmail.com>
parents:
diff changeset
23