# HG changeset patch # User Todd Larsen # Date 1231357109 0 # Node ID a91f7856754ed90df9c46dd23e22802c93ff49b5 # Parent 0b1beae179f5019218311e80ffb925852c8cbe8e Add IRC channel and mailing list properties to the Group and Organization Models. Patch by: Todd Larsen Review by: to-be-reviewed diff -r 0b1beae179f5 -r a91f7856754e app/soc/models/group.py --- a/app/soc/models/group.py Wed Jan 07 16:49:16 2009 +0000 +++ b/app/soc/models/group.py Wed Jan 07 19:38:29 2009 +0000 @@ -67,7 +67,17 @@ #: Required field storing description of the group. description = db.TextProperty(required=True, verbose_name=ugettext_lazy('Description')) - + + #: Optional public mailing list. + pub_mailing_list = db.StringProperty(required=False, + verbose_name=ugettext_lazy('Public Mailing List')) + pub_mailing_list.help_text = ugettext_lazy( + 'Mailing list email address, URL to sign-up page, etc.') + + #: Optional public IRC channel. + irc_channel = db.StringProperty(required=False, + verbose_name=ugettext_lazy('Public IRC Channel (and Network)')) + #: Required field containing a group street address. #: Group street address can only be lower ASCII, not UTF-8 text, #: because, if supplied, it is used as a shipping address. diff -r 0b1beae179f5 -r a91f7856754e app/soc/models/organization.py --- a/app/soc/models/organization.py Wed Jan 07 16:49:16 2009 +0000 +++ b/app/soc/models/organization.py Wed Jan 07 19:38:29 2009 +0000 @@ -36,4 +36,9 @@ reference. """ - pass + #: Optional development mailing list. + dev_mailing_list = db.EmailProperty(required=False, + verbose_name=ugettext_lazy('Development Mailing List')) + dev_mailing_list.help_text = ugettext_lazy( + 'Mailing list email address, URL to sign-up page, etc.') +