Changeset 6067 for main/waeup.sirp/trunk


Ignore:
Timestamp:
13 May 2011, 05:54:32 (14 years ago)
Author:
Henrik Bettermann
Message:

Start renaming the views in the applicants package according to the naming convention made in the university package.

The getApplications method is not really necessary since we only store ApplicantsContainers? here.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6063 r6067  
    8080    MultiListDisplayWidget, subwidget=results_display_widget)
    8181
    82 class ApplicationsPage(WAeUPPage):
     82class ApplicantsRootPage(WAeUPPage):
    8383    grok.context(IApplicantsRoot)
    8484    grok.name('index')
     
    8787
    8888    def update(self):
    89         super(ApplicationsPage, self).update()
     89        super(ApplicantsRootPage, self).update()
    9090        datatable.need()
    9191        return
    9292
    93     def getApplications(self):
    94         """Get a list of all stored applicant containers.
    95         """
    96         for key, val in self.context.items():
    97             url = self.url(val)
    98             yield(dict(url=url, name=key, container=val))
     93    #def getApplications(self):
     94    #    """Get a list of all stored applicant containers.
     95    #    """
     96    #    for key, val in self.context.items():
     97    #        url = self.url(val)
     98    #        yield(dict(url=url, name=key, container=val))
    9999
    100100class ManageApplicantsRootActionButton(ManageActionButton):
    101101    grok.context(IApplicantsRoot)
    102     grok.view(ApplicationsPage)
     102    grok.view(ApplicantsRootPage)
    103103    text = 'Manage applicant containers'
    104104
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootpage.pt

    r6066 r6067  
    66  </thead>
    77  <tbody>
    8     <tr tal:repeat="entry view/getApplications"
     8    <tr tal:repeat="entry context/values"
    99        class="gradeB">
    1010      <td>
    1111        <a href=""
    12            tal:attributes="href entry/url"
     12           tal:attributes="href python:view.url(entry)"
    1313           tal:content="entry/name"
    1414           >Name</a>
    1515      </td>
    16       <td tal:content="entry/container/title">
     16      <td tal:content="entry/title">
    1717        Title
    1818      </td>
Note: See TracChangeset for help on using the changeset viewer.