Add IRC channel and mailing list properties to the Group and Organization
authorTodd Larsen <tlarsen@google.com>
Wed, 07 Jan 2009 19:38:29 +0000
changeset 772 a91f7856754e
parent 771 0b1beae179f5
child 773 fefaf4628a4d
Add IRC channel and mailing list properties to the Group and Organization Models. Patch by: Todd Larsen Review by: to-be-reviewed
app/soc/models/group.py
app/soc/models/organization.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.
--- 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.')
+