app/soc/models/group.py
changeset 259 74eb6b01c82c
parent 208 e076aee6e90f
child 298 c76a366c7ab4
--- a/app/soc/models/group.py	Wed Oct 01 22:12:26 2008 +0000
+++ b/app/soc/models/group.py	Wed Oct 01 22:19:22 2008 +0000
@@ -60,23 +60,23 @@
   founder = db.ReferenceProperty(reference_class=soc.models.user.User,
                                  required=True, collection_name="groups")  
   #: Optional field storing a home page URL of the group.
-  home_page = db.LinkProperty(
+  home_page = db.LinkProperty(required=True,
       verbose_name=ugettext_lazy('Home Page URL'))
   
   #: Optional email address used as the "public" contact mechanism for
   #: the Group (as opposed to the founder.id email address which is kept
   #: secret, revealed only to Developers).
-  email = db.EmailProperty(
+  email = db.EmailProperty(required=True,
       verbose_name=ugettext_lazy('Email'))  
   
   #: Optional field storing description of the group.
-  description = db.TextProperty(
+  description = db.TextProperty(required=True,
       verbose_name=ugettext_lazy('Description'))
       
   #: Optional 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.
-  street = db.StringProperty(
+  street = db.StringProperty(required=True,
       verbose_name=ugettext_lazy('Street address'))
   street.help_text = ugettext_lazy(
       'street number and name, lower ASCII characters only')
@@ -84,34 +84,34 @@
   #: Optional field containing group address city.
   #: City can only be lower ASCII, not UTF-8 text, because, if
   #: supplied, it is used as a shipping address.
-  city = db.StringProperty(
+  city = db.StringProperty(required=True,
       verbose_name=ugettext_lazy('City'))
   city.help_text = ugettext_lazy('lower ASCII characters only')
 
   #: Optional field containing group address state or province.
   #: Group state/province can only be lower ASCII, not UTF-8
   #: text, because, if supplied, it is used as a shipping address.
-  state = db.StringProperty(
+  state = db.StringProperty(required=True,
       verbose_name=ugettext_lazy('State/Province'))
   state.help_text = ugettext_lazy(
       'optional if country/territory does not have states or provinces, '
       'lower ASCII characters only')
 
   #: Optional field containing address country or territory of the group.
-  country = db.StringProperty(
+  country = db.StringProperty(required=True,
       verbose_name=ugettext_lazy('Country/Territory'),
       choices=countries.COUNTRIES_AND_TERRITORIES)
 
   #: Optional field containing address postal code of the group (ZIP code in
   #: the United States). Postal code can only be lower ASCII, not UTF-8 
   #: text, because, if supplied, it is used as a shipping address.
-  postalcode = db.StringProperty(
+  postalcode = db.StringProperty(required=True,
       verbose_name=ugettext_lazy('ZIP/Postal Code'))
   postalcode.help_text=ugettext_lazy('lower ASCII characters only')
 
   #: Optional contact phone number that will be, amongst other uses,
   #: supplied to shippers along with the shipping address; kept private.
-  phone = db.PhoneNumberProperty(
+  phone = db.PhoneNumberProperty(required=True,
       verbose_name=ugettext_lazy('Phone Number'))
   phone.help_text = ugettext_lazy(
       'include complete international calling number with country code')