示例#1
0
 def context(self):
     """See template.Template.context for specification."""
     list_configuration_response = lists.ListConfigurationResponse(
         self.data, self._list_config, 0, self._description)
     return {
         'lists': [list_configuration_response],
         'list_title': _ACCEPTED_PROJECTS_LIST_TITLE,
     }
示例#2
0
 def context(self):
     description = 'List of all Open tasks.'
     return {
         'lists': [
             lists.ListConfigurationResponse(self.data, self.list_config, 0,
                                             description)
         ],
     }
示例#3
0
  def context(self):
    """See template.Template.context for specification."""
    description = ORGANIZATION_LIST_DESCRIPTION

    list_configuration_response = lists.ListConfigurationResponse(
        self.data, self.list_config, 0, description)

    return {'lists': [list_configuration_response]}
示例#4
0
 def context(self):
     """Returns the context for the current template."""
     configuration_response_list = lists.ListConfigurationResponse(
         self.data,
         self.list_config,
         idx=self.idx,
         description=self.description)
     return {'lists': [configuration_response_list]}
示例#5
0
    def context(self):
        description = 'List of documents for %s' % (self.data.program.name)

        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, 0, description)

        return {
            'lists': [list_configuration_response],
        }
示例#6
0
    def context(self):
        description = self._getDescription()

        return {
            'lists': [
                lists.ListConfigurationResponse(self.data, self._list_config,
                                                0, description)
            ],
        }
 def context(self):
     """Returns the context for the current template."""
     return {
         'lists': [
             lists.ListConfigurationResponse(self.data,
                                             self._list_config,
                                             idx=0)
         ]
     }
示例#8
0
  def context(self):
    """See soc.views.template.Template.context for full specification."""
    description = self._getDescription()

    return {
        'title': self._getTitle(),
        'lists': [lists.ListConfigurationResponse(
            self.data, self._list_config, 0, description)],
    }
示例#9
0
    def context(self):
        description = 'List of tasks for %s' % (self.data.program.name)

        return {
            'lists': [
                lists.ListConfigurationResponse(self.data, self._list_config,
                                                0, description)
            ],
        }
示例#10
0
    def context(self):
        """See template.Template.context for specification."""
        description = self._getDescription()

        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, 0, description)

        return {
            'lists': [list_configuration_response],
        }
示例#11
0
    def context(self):
        description = 'List of slot transfer requests for the program %s' % (
            self.data.program.name)

        slot_transfer_request_list = lists.ListConfigurationResponse(
            self.data, self._list_config, 0, description)

        return {
            'lists': [slot_transfer_request_list],
        }
示例#12
0
    def context(self):
        description = 'Leaderboard for %s' % (self.data.program.name)

        leaderboard_list = lists.ListConfigurationResponse(
            self.data, self._list_config, self.LEADERBOARD_LIST_IDX,
            description)

        return {
            'lists': [leaderboard_list],
        }
示例#13
0
    def context(self):
        all_participating_students_list = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=self.idx)

        return {
            'name': 'students',
            'title': 'Participating students',
            'lists': [all_participating_students_list],
            'description': ugettext('List of all participating students'),
        }
示例#14
0
    def context(self):
        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=0,
            description='List of projects under %s that ' \
                'accepted into %s' % (
                self.data.url_ndb_org.name, self.data.program.name))

        return {
            'lists': [list_configuration_response],
        }
示例#15
0
    def context(self):
        description = 'Organization scores for %s' % (
            self.data.organization.name)

        org_scores_list = lists.ListConfigurationResponse(
            self.data, self._list_config, self.ORG_SCORE_LIST_IDX, description)

        return {
            'lists': [org_scores_list],
        }
示例#16
0
    def context(self):
        description = 'List of shipment informations for %s' % \
                      self.data.program.name

        list_response = lists.ListConfigurationResponse(
            self.data, self._list_config, 0, description)
        return {
            'list_name': 'Shipment Informations',
            'lists': [list_response],
        }
示例#17
0
    def context(self):
        list_configuration_response = lists.ListConfigurationResponse(
            self.data,
            self._list_config,
            idx=self.IDX,
            description='Downloads - %s' % (self.data.program.name))

        return {
            'lists': [list_configuration_response],
        }
示例#18
0
    def context(self):
        """Returns the context of this component."""
        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=0, preload_list=False)

        return {
            'name': 'org_app',
            'title': 'My organization applications',
            'lists': [list_configuration_response],
            'description': ugettext('My organization applications'),
        }
示例#19
0
    def context(self):
        description = ('List of proposals submitted into %s' %
                       self.data.url_ndb_org.name)

        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=0, description=description)
        return {
            'name': 'proposals_submitted',
            'title': 'PROPOSALS SUBMITTED TO MY ORGS',
            'lists': [list_configuration_response],
        }
示例#20
0
    def context(self):
        description = \
            'List of organization admins and mentors participating in %s' % (
                self.data.program.name)

        return {
            'lists': [
                lists.ListConfigurationResponse(self.data, self._list_config,
                                                0, description)
            ],
        }
示例#21
0
    def context(self):
        """See template.Template.context for specification."""
        description = translation.ugettext('List of participating students')
        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=0, description=description)

        return {
            'name': 'students',
            'title': 'Participating students',
            'lists': [list_configuration_response],
        }
示例#22
0
    def context(self):
        list_configuration_response = lists.ListConfigurationResponse(
            self.data,
            self._list_config,
            idx=0,
            description='List of proposals submitted for %s' %
            (self.data.program.name))

        return {
            'list_title': 'Submitted Proposals',
            'lists': [list_configuration_response],
        }
示例#23
0
    def context(self):
        list_configuration_response = lists.ListConfigurationResponse(
            self.data,
            self._list_config,
            idx=0,
            description='List of %s projects whether accepted or withdrawn' %
            (self.data.program.name))

        return {
            'list_title': 'Accepted Projects',
            'lists': [list_configuration_response],
        }
示例#24
0
    def context(self):
        list_config = lists.ListConfigurationResponse(self.data,
                                                      self._list_config,
                                                      idx=self.IDX,
                                                      preload_list=False)

        return {
            'name': 'documents',
            'title': 'Important documents',
            'lists': [list_config],
            'description': ugettext('List of important documents'),
        }
示例#25
0
    def context(self):
        """Returns the context of this component."""
        list_configuration_response = lists.ListConfigurationResponse(
            self.data, self._list_config, idx=6, preload_list=False)

        return {
            'name': 'all_orgs_mentors',
            'title': 'All mentors for my organizations',
            'lists': [list_configuration_response],
            'description':
            ugettext('List of all mentors for my organizations'),
        }
示例#26
0
    def context(self):
        """Returns the context of this component."""
        task_list = lists.ListConfigurationResponse(self.data,
                                                    self._list_config,
                                                    idx=self.IDX,
                                                    preload_list=False)

        return {
            'name': 'all_org_tasks',
            'title': 'All tasks for my organizations',
            'lists': [task_list],
            'description': ugettext('List of all tasks for my organization'),
        }
示例#27
0
    def _getContext(self):
        org_list = lists.ListConfigurationResponse(self.data,
                                                   self._list_config,
                                                   idx=self.idx,
                                                   preload_list=False)

        return {
            'name':
            'orgs_scores',
            'title':
            'Student scores for my organizations',
            'lists': [org_list],
            'description':
            ugettext('See the students who have completed'
                     'at least one task for your organizations.')
        }
示例#28
0
    def _getContext(self):
        org_list = lists.ListConfigurationResponse(self.data,
                                                   self._list_config,
                                                   idx=self.idx,
                                                   preload_list=False)

        return {
            'name':
            'edit_org_profile',
            'title':
            'Edit organization profile',
            'lists': [org_list],
            'description':
            ugettext(
                'Edit organization profile. Since you may '
                'belong to more than one organizations, you need to choose one '
                'organization you will edit the profile for.')
        }
示例#29
0
    def _getContext(self):
        org_list = lists.ListConfigurationResponse(self.data,
                                                   self._list_config,
                                                   idx=self.idx,
                                                   preload_list=False)

        return {
            'name':
            'bulk_create_tasks',
            'title':
            'Bulk Upload Tasks',
            'lists': [org_list],
            'description':
            ugettext(
                'Bulk upload tasks. Since you may '
                'belong to more than one organizations, you need to choose one '
                'organization you will upload the tasks for.')
        }