app/soc/models/role.py
changeset 2264 c8697d928065
parent 2249 08d1367deb4f
child 2698 5783338b2c8d
equal deleted inserted replaced
2263:823fdb4e1781 2264:c8697d928065
   118 
   118 
   119   #====================================================================
   119   #====================================================================
   120   #  (public) contact information
   120   #  (public) contact information
   121   #====================================================================
   121   #====================================================================
   122 
   122 
   123   #: Required field used as the 'public' contact mechanism for the
       
   124   #: Role (as opposed to the user.account email address which is
       
   125   #: kept secret).
       
   126   email = db.EmailProperty(
       
   127       required=True,
       
   128       verbose_name=ugettext('Email Address'))
       
   129   email.group = ugettext("1. Public Info")
       
   130 
       
   131   #: Optional field storing Instant Messaging network; displayed publicly.
   123   #: Optional field storing Instant Messaging network; displayed publicly.
   132   im_network = db.StringProperty(
   124   im_network = db.StringProperty(
   133       verbose_name=ugettext('IM Network'))
   125       verbose_name=ugettext('IM Network'))
   134   im_network.help_text = ugettext(
   126   im_network.help_text = ugettext(
   135       'examples: irc:irc.freenode.net xmpp:gmail.com/Home')
   127       'examples: irc:irc.freenode.net xmpp:gmail.com/Home')
   177   longitude.group = ugettext("1. Public Info")
   169   longitude.group = ugettext("1. Public Info")
   178 
   170 
   179   #====================================================================
   171   #====================================================================
   180   # (private) contact information
   172   # (private) contact information
   181   #====================================================================
   173   #====================================================================
       
   174 
       
   175   #: Required field used as the contact mechanism for the program
       
   176   #: Role (for example the address the system sends emails to).
       
   177   email = db.EmailProperty(
       
   178       required=True,
       
   179       verbose_name=ugettext('Email Address'))
       
   180   email.group = ugettext("2. Contact Info (Private)")
   182 
   181 
   183   #: Required field containing residence street address; kept private.
   182   #: Required field containing residence street address; kept private.
   184   #: Residence street address can only be ASCII, not UTF-8 text, because
   183   #: Residence street address can only be ASCII, not UTF-8 text, because
   185   #: it may be used as a shipping address.
   184   #: it may be used as a shipping address.
   186   res_street = db.StringProperty(required=True,
   185   res_street = db.StringProperty(required=True,