app/soc/models/org_app.py
changeset 1230 b1b1897e4df1
parent 1229 ec3768cbf369
child 1231 ab19a8ad375f
equal deleted inserted replaced
1229:ec3768cbf369 1230:b1b1897e4df1
    38   Eventually, this will be replaced with a Question/Answer/Quiz/Response
    38   Eventually, this will be replaced with a Question/Answer/Quiz/Response
    39   approach.  At that time, existing OrgApplication entities will be migrated
    39   approach.  At that time, existing OrgApplication entities will be migrated
    40   (converted) to their new representations in the Datastore.
    40   (converted) to their new representations in the Datastore.
    41   """
    41   """
    42   
    42   
    43   prior_participation = db.TextProperty(required=False,
    43   prior_participation = db.TextProperty(required=False, verbose_name=ugettext(
    44     verbose_name=ugettext(
       
    45       'Has your group participated previously?'
    44       'Has your group participated previously?'
    46       ' If so, please summarize your involvement and any past successes'
    45       ' If so, please summarize your involvement and any past successes'
    47       ' and failures.'))
    46       ' and failures.'))
    48 
    47 
    49   prior_application = db.TextProperty(required=False,
    48   prior_application = db.TextProperty(required=False, verbose_name=ugettext(
    50     verbose_name=ugettext(
       
    51       'If your group has not previously participated, have you applied in'
    49       'If your group has not previously participated, have you applied in'
    52       ' the past?  If so, for what sort of participation?'))
    50       ' the past?  If so, for what sort of participation?'))
    53   
    51   
    54   license_name = db.StringProperty(required=True,
    52   license_name = db.StringProperty(required=True, verbose_name=ugettext(
    55     verbose_name=ugettext(
       
    56       'What license does your organization use?'))
    53       'What license does your organization use?'))
    57  
    54  
    58   ideas = db.ReferenceProperty(reference_class=soc.models.document.Document,
    55   ideas = db.LinkProperty(required=True, verbose_name=ugettext(
    59     required=True, collection_name='ideas_app',
    56       'What is the ideas list of your organization?'))
    60     verbose_name=ugettext(
       
    61       'Please select the Document containing your ideas list.'))
       
    62 
    57 
    63   dev_mailing_list = db.StringProperty(required=False,
    58   dev_mailing_list = db.StringProperty(required=False, verbose_name=ugettext(
    64     verbose_name=ugettext(
    59       'What is the main development mailing list for your group?'))
    65       'What is the main development mailing list for your group?'
       
    66       ' (optional)'))
       
    67   dev_mailing_list.help_text = ugettext(
    60   dev_mailing_list.help_text = ugettext(
    68     'Mailing list email address, URL to sign-up page, etc.')
    61       'Mailing list email address, URL to sign-up page, etc.')
    69 
    62 
    70   contrib_template = db.ReferenceProperty(
    63   contrib_template = db.LinkProperty(required=False, verbose_name=ugettext(
    71     reference_class=soc.models.document.Document, required=False,
    64       'What application template would you like contributors'
    72     collection_name='org_app_contrib_template',
    65       ' to your organization to use.'))
    73     verbose_name=ugettext(
       
    74       'Please select the application template you would like contributors'
       
    75       ' to your group to use.  (optional).'))
       
    76   contrib_template.help_text = ugettext(
    66   contrib_template.help_text = ugettext(
    77     'This template will be presented to contributors, such as students'
    67       'This template can be used by contributors, such as students'
    78     ' and other non-member participants, when they apply to contribute'
    68       ' and other non-member participants, when they apply to contribute'
    79     ' to the organization.')
    69       ' to the organization.')
    80 
    70 
    81   contrib_disappears = db.TextProperty(required=True,
    71   contrib_disappears = db.TextProperty(required=True, verbose_name=ugettext(
    82     verbose_name=ugettext(
       
    83       'What is your plan for dealing with disappearing contributors?'))
    72       'What is your plan for dealing with disappearing contributors?'))
    84   contrib_disappears.help_text = ugettext(
    73   contrib_disappears.help_text = ugettext(
    85     'Contributors include students and other non-member participants.')
    74       'Contributors include students and other non-member participants.')
    86 
    75 
    87   member_disappears = db.TextProperty(required=True,
    76   member_disappears = db.TextProperty(required=True, verbose_name=ugettext(
    88     verbose_name=ugettext(
       
    89       'What is your plan for dealing with disappearing members?'))
    77       'What is your plan for dealing with disappearing members?'))
    90   member_disappears.help_text = ugettext(
    78   member_disappears.help_text = ugettext(
    91     'Members include mentors, administrators, and the like.')
    79       'Members include mentors, administrators, and the like.')
    92 
    80 
    93   encourage_contribs = db.TextProperty(required=True,
    81   encourage_contribs = db.TextProperty(required=True, verbose_name=ugettext(
    94     verbose_name=ugettext(
       
    95       'What steps will you take to encourage contributors to interact with'
    82       'What steps will you take to encourage contributors to interact with'
    96       ' your community before, during, and after the program?'))
    83       ' your community before, during, and after the program?'))
    97   encourage_contribs.help_text = contrib_disappears.help_text
    84   encourage_contribs.help_text = contrib_disappears.help_text
    98 
    85 
    99   continued_contribs = db.TextProperty(required=True,
    86   continued_contribs = db.TextProperty(required=True, verbose_name=ugettext(
   100     verbose_name=ugettext(
       
   101       'What will you do to ensure that your accepted contributors stick'
    87       'What will you do to ensure that your accepted contributors stick'
   102       ' with the project after the program concludes?'))
    88       ' with the project after the program concludes?'))
   103   continued_contribs.help_text = contrib_disappears.help_text
    89   continued_contribs.help_text = contrib_disappears.help_text