Changeset 1160


Ignore:
Timestamp:
30 Dec 2006, 21:39:19 (18 years ago)
Author:
Henrik Bettermann
Message:

session result checking made work on demo server

Location:
WAeUP_SRP/trunk
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1158 r1160  
    7575        return None
    7676    ###)
    77    
     77
    7878    security.declarePublic('findStudentByMatricelNo') ###(
    7979    def findStudentByMatricelNo(self,matric_no):
     
    103103        self.manage_setLocalRoles(sid, ['Owner',])
    104104    ###)
    105        
     105
    106106    security.declarePublic('makeStudentData') ###(
    107107    def makeStudentData(self,student_id,email=None,phone_nr=None):
     
    115115        res = self.returning_import(matric_no = st.matric_no)
    116116        if res:
    117             student = res[0] 
     117            student = res[0]
    118118        logger.info('"%s", "creating Datastructure"' % student_id)
    119119        certcode_org = student.Coursemajorcode
     
    134134        student_obj.invokeFactory('StudentApplication','application')
    135135        application = student_obj.application
    136         self.portal_workflow.doActionFor(application,'open',dest_container=application)
     136        self.portal_workflow.doActionFor(application,'close',dest_container=application)
    137137        da = {'Title': 'Application Data'}
    138138        student_obj.invokeFactory('StudentPersonal','personal')
     
    144144        student_obj.invokeFactory('StudentClearance','clearance')
    145145        clearance = student_obj.clearance
    146         self.portal_workflow.doActionFor(clearance,'open',dest_container=clearance)
     146        self.portal_workflow.doActionFor(clearance,'close',dest_container=clearance)
    147147        dc = {'Title': 'Clearance/Eligibility Record'}
    148148        dc['matric_no'] = matric_no
     
    196196##            self.portal_workflow.doActionFor(l,'open',dest_container=l)
    197197##            l.getContent().edit(mapping={'Title': "Level %s" % level})
    198        
     198
    199199    security.declarePublic('getAccommodationInfo') ###(
    200200    def getAccommodationInfo(self,bed):
     
    228228        pm = self.portal_membership
    229229        member = pm.getAuthenticatedMember()
    230        
     230
    231231        if str(member) not in ("henrik","joachim"):
    232232            return "not possible"
     
    235235        if len(res) < 1:
    236236            return "No Departments found"
    237        
     237
    238238        deleted = []
    239239        for dep in res:
     
    243243                deleted.append("deleted Courses in %s" % dep.getId)
    244244        return "\r".join(deleted)
    245     ###)   
    246    
     245    ###)
     246
    247247
    248248InitializeClass(WAeUPTool)
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r1159 r1160  
    170170   <permission>View</permission>
    171171  </action>
    172   <action title="View Session Results" action_id="display_session_results"
     172  <action title="View Sess. Results" action_id="display_session_results"
    173173     category="student" condition_expr="not:member"
    174174     url_expr="string:${portal_url}/display_session_results" visible="True">
    175175   <permission>View</permission>
    176   </action> 
     176  </action>
    177177  <action title="My Accommodation" action_id="reserve_accommodation"
    178178     category="student_navigation" condition_expr="member"
  • WAeUP_SRP/trunk/skins/waeup_student/layout_search_session_edit.pt

    r1151 r1160  
    7171  <br />
    7272  <input type="submit" class="standalone" name="cpsdocument_edit_button"
    73          value="Save"
     73         value="Save and Login (not yet working)"
    7474         id="cpsdocument_edit_button"
    7575         tal:condition="not:creation" />
  • WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt

    r1151 r1160  
    5252        </span>
    5353      </table>
    54       <a href="" tal:attributes="href string:${context/absolute_url}/set_access_data?matric_no=${student/matric_no}">Continue to Email-entry</a>
     54      <br />
     55      <a href="" tal:attributes="href string:${context/absolute_url}/set_access_data?matric_no=${student/matric_no}">
     56        Continue to Login!
     57      </a>
    5558    </metal:main>
    5659  </metal:body>
  • WAeUP_SRP/trunk/skins/waeup_student/set_access_data_form.pt

    r1154 r1160  
    1313      </metal:block>
    1414      <metal:block fill-slot="main">
    15         <h3>Enter Your Email Address and Choose a Password</h3>
     15        <h3>Enter Your Email Address and Choose a Password!</h3>
    1616        <br />
    1717        <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.