app/soc/models/group_app.py
changeset 789 e55cad180973
parent 786 6d802e596a96
child 795 8914adaa93a7
equal deleted inserted replaced
788:892877b7db07 789:e55cad180973
    76 
    76 
    77   prior_participation = db.TextProperty(required=False,
    77   prior_participation = db.TextProperty(required=False,
    78     verbose_name=ugettext_lazy(
    78     verbose_name=ugettext_lazy(
    79       'Has your group participated previously?'
    79       'Has your group participated previously?'
    80       ' If so, please summarize your involvement and any past successes'
    80       ' If so, please summarize your involvement and any past successes'
    81       ' and failures. (optional)'))
    81       ' and failures.'))
    82 
    82 
    83   prior_application = db.TextProperty(required=False,
    83   prior_application = db.TextProperty(required=False,
    84     verbose_name=ugettext_lazy(
    84     verbose_name=ugettext_lazy(
    85       'If your group has not previously participated, have you applied in'
    85       'If your group has not previously participated, have you applied in'
    86       ' the past?  If so, for what sort of participation? (optional)'))
    86       ' the past?  If so, for what sort of participation?'))
    87 
    87 
    88   pub_mailing_list = db.StringProperty(required=False,
    88   pub_mailing_list = db.StringProperty(required=False,
    89     verbose_name=ugettext_lazy(
    89     verbose_name=ugettext_lazy(
    90       'What is the main public mailing list for your group? (optional)'))
    90       'What is the main public mailing list for your group?'))
    91   pub_mailing_list.help_text = ugettext_lazy(
    91   pub_mailing_list.help_text = ugettext_lazy(
    92     'Mailing list email address, URL to sign-up page, etc.')
    92     'Mailing list email address, URL to sign-up page, etc.')
    93 
    93 
    94   irc_channel = db.StringProperty(required=False,
    94   irc_channel = db.StringProperty(required=False,
    95     verbose_name=ugettext_lazy(
    95     verbose_name=ugettext_lazy(
    96       'Where is the main IRC channel for your group?'
    96       'Where is the main IRC channel for your group?'))
    97       ' (optional)'))
       
    98   irc_channel.help_text = ugettext_lazy('IRC network and channel.')
    97   irc_channel.help_text = ugettext_lazy('IRC network and channel.')
    99 
    98 
   100   backup_admin = db.ReferenceProperty(reference_class=soc.models.user.User,
    99   backup_admin = db.ReferenceProperty(reference_class=soc.models.user.User,
   101     required=True,  collection_name='group_app_backup_admin',
   100     required=True,  collection_name='group_app_backup_admin',
   102     verbose_name=ugettext_lazy(
   101     verbose_name=ugettext_lazy(
   104 
   103 
   105   member_criteria = db.TextProperty(required=True,
   104   member_criteria = db.TextProperty(required=True,
   106     verbose_name=ugettext_lazy(
   105     verbose_name=ugettext_lazy(
   107       'What criteria do you use to select the members of your group?'
   106       'What criteria do you use to select the members of your group?'
   108       ' Please be as specific as possible.'))
   107       ' Please be as specific as possible.'))
   109   member_disappears = ugettext_lazy(
   108   member_criteria.help_text = ugettext_lazy(
   110     'Members include mentors, admininstrators, and the like.')
   109     'Members include mentors, admininstrators, and the like.')
   111 
       
   112   member_template = db.ReferenceProperty(
       
   113     reference_class=soc.models.document.Document, required=False,
       
   114     collection_name='group_app_member_template',
       
   115     verbose_name=ugettext_lazy(
       
   116       'Please select the application template you would like potential'
       
   117       ' members of your group to use.  (optional).'))
       
   118   member_template.help_text = ugettext_lazy(
       
   119     'This template will be presented to potential members when they'
       
   120     ' apply to the group.')