Mercurial > hg > discussions
annotate 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 |
| rev | line source |
|---|---|
| 0 | 1 { 'email': , |
| 2 <arbitrary metadata: name, birthday, address, favorite ice cream, etc> | |
| 3 'password': 'secret', | |
| 4 | |
| 5 } | |
| 6 | |
| 7 # you sign in with an email address | |
| 8 # email addresses should be multiple | |
| 9 | |
| 10 def Member(object): | |
| 11 | |
| 12 def role(self, discussion): | |
| 13 """ | |
| 14 member's role with respect to discussion or conference; | |
| 15 returns 'admin', 'member', or None | |
| 16 """ | |
| 17 | |
| 18 def add(self, discussion): | |
| 19 """adds a member to a discussion""" | |
| 20 | |
| 21 | |
| 22 | |
| 23 |
