Changeset 1417 for WAeUP_SRP


Ignore:
Timestamp:
15 Feb 2007, 10:56:43 (18 years ago)
Author:
joachim
Message:

Edit student_study course added
verdicts vocabulary added
new levels are only created, when no level there,
allow loggin for returning students, which have been created with add_student

Location:
WAeUP_SRP/trunk
Files:
2 added
12 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/layout.xsl

    r1412 r1417  
    8989                </th>
    9090                <td>
    91                   <xsl:value-of select="text()"/>
     91                  <xsl:choose>
     92                    <xsl:when test="@name='vocabulary'">
     93                      <a href="../vocabularies/{text()}.xml"><xsl:value-of select="text()"/></a>
     94                    </xsl:when>
     95                    <xsl:otherwise>
     96                      <xsl:value-of select="text()"/>
     97                    </xsl:otherwise>
     98                  </xsl:choose>
    9299                </td>
    93100                <td>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_create.xml

    r1415 r1417  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="layout.xsl"?>
    23<object name="student_create" meta_type="CPS Layout">
    34 <property name="layout_create_method"></property>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml

    r1404 r1417  
    2020  <property name="hidden_readonly_layout_modes"/>
    2121 </widget>
    22  <widget name="current_level" meta_type="String Widget">
     22 <widget name="current_level" meta_type="Select Widget">
    2323  <property name="title">Current Studylevel</property>
    2424  <property name="fields">
     
    3131  <property name="hidden_layout_modes"/>
    3232  <property name="hidden_readonly_layout_modes"/>
     33  <property name="vocabulary">courselevel</property>
    3334 </widget>
    34  <widget name="current_verdict" meta_type="String Widget">
     35 <widget name="current_verdict" meta_type="Select Widget">
    3536  <property name="title">Current Verdict</property>
    3637  <property name="fields">
     
    4344  <property name="hidden_layout_modes"/>
    4445  <property name="hidden_readonly_layout_modes"/>
     46  <property name="vocabulary">verdicts</property>
    4547 </widget>
    4648 <table>
     49  <row>
     50   <cell name="study_course"/>
     51  </row>
    4752  <row>
    4853   <cell name="current_verdict"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentStudyCourse.xml

    r1403 r1417  
    3737  <permission value="View"/>
    3838 </action>
     39 <action title="action_edit" action_id="edit" category="object" condition_expr=""
     40    url_expr="string:${object_url}/waeup_edit_form" visible="True">
     41  <permission value="Modify portal content"/>
     42 </action>
    3943 <action title="Delegate" action_id="localroles" category="object"
    4044    condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
     
    4549    condition_expr=""
    4650    url_expr="string:${object/absolute_url}/content_create?type_name=StudentStudyLevel"
    47     visible="True">
     51    visible="False">
    4852  <permission value="Add portal content"/>
    4953 </action>
  • WAeUP_SRP/trunk/profiles/default/vocabularies.xml

    r1415 r1417  
    3131 <object name="academics_search_mode" meta_type="CPS Vocabulary"/>
    3232 <object name="searchable_academics_states" meta_type="CPS Vocabulary"/>
     33 <object name="verdicts" meta_type="CPS Vocabulary"/>
    3334 </object>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/entry_modes.xml

    r1415 r1417  
    11<?xml version="1.0"?>
     2<?xml-stylesheet type="text/xsl" href="vocabulary.xsl"?>
    23<object name="entry_modes" meta_type="CPS Vocabulary">
    34 <property name="title"></property>
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1347 r1417  
    113113                             p_review_state == 'created' :
    114114            wftool.doActionFor(student_per,'open')
    115        
     115        res = context.students_catalog(id = str(member))
     116        matric_no = res[0].matric_no
     117        is_imported = context.returning_import(matric_no = matric_no)
    116118        if s_review_state == "application_pin_entered":
    117119            redirect_url = "%s/application_edit_form" % student.absolute_url()
     
    122124        elif s_review_state == "cleared_and_validated":
    123125            redirect_url = "%s/personal_edit_form" % student.absolute_url()
    124         elif s_review_state == "returning":
     126        elif s_review_state == "returning" and is_imported:
    125127            redirect_url = "%s/session_results_view" % student.absolute_url()
    126128        else:
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py

    r1366 r1417  
    5353            context.students_catalog.modifyRecord(id = student_id,
    5454                                                  course = course,
     55                                                  level = ds.get('current_level'),
     56                                                  verdict = ds.get('current_verdict'),
    5557                                                  faculty = c_path[-4],
    5658                                                  department = c_path[-3],
  • WAeUP_SRP/trunk/skins/waeup_student/add_student.py

    r1416 r1417  
    4949matric_no = ds.get('matric_no')
    5050res = context.students_catalog(matric_no = matric_no)
    51 psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
    5251if res:
     52    psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
    5353    return context.add_student_form(rendered = rendered,
    5454                                 psm = psm,
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1413 r1417  
    88pr = context.portal_registration
    99
     10request = context.REQUEST
    1011returning = context.returning_import
    1112results = context.results_import
     
    4546
    4647res = returning(matric_no = matric_no)
    47 student_from_returning = res[0]
     48if res:
     49    student_from_returning = res[0]
     50else:
     51    return None
     52
    4853res = results(matric_no = matric_no)
    4954results = res
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py

    r1403 r1417  
    4545current_level = sbrain.level
    4646levels = context.objectIds()
    47 if current_level not in levels:
     47#levels.sort()
     48#if int(current_level) > int(levels[-1]):
     49if not levels:
    4850    context.invokeFactory('StudentStudyLevel',"%s" % current_level)
    4951    level = getattr(context,"%s" % current_level)
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1380 r1417  
    1111      </a>
    1212      <h3>
    13         <span tal:condition="python:is_so and s_info">
     13        <span tal:condition="is_so">
    1414          <span tal:content="info/student/name" />:
    1515        </span>
Note: See TracChangeset for help on using the changeset viewer.