- Timestamp:
- 21 Sep 2008, 06:01:55 (16 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 8 added
- 1 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/CHANGES.txt
r3681 r3682 26 26 - admitOneStudent uses entry_session from applicants_catalog instead 27 27 of static argument (not yet tested) 28 29 1.4 (2008-09-21) 30 ----------------- 31 - Implement Student Pastoral Report for secondary schools 32 -
WAeUP_SRP/base/Students.py
r3481 r3682 907 907 ###) 908 908 909 909 910 class StudentPume(CPSDocument): ###( 910 911 """ … … 927 928 ob = StudentPume(id, **kw) 928 929 return CPSBase_adder(container, ob, REQUEST=REQUEST) 929 930 930 ###) 931 932 933 class StudentPastoralReport(CPSDocument): ###( 934 """ 935 Student Pastoral Report 936 """ 937 meta_type = 'StudentPastoralReport' 938 portal_type = meta_type 939 security = ClassSecurityInfo() 940 941 InitializeClass(StudentPastoralReport) 942 943 def addStudentPastoralReport(container, id, REQUEST=None, **kw): 944 """Add a Student Pastoral Report.""" 945 ob = StudentPastoralReport(id, **kw) 946 return CPSBase_adder(container, ob, REQUEST=REQUEST) 947 ###) 931 948 932 949 # Backward Compatibility StudyLevel -
WAeUP_SRP/base/__init__.py
r3673 r3682 8 8 from Products.GenericSetup import profile_registry 9 9 from Products.GenericSetup import EXTENSION 10 from Products.GenericSetup import BASE 10 11 11 12 from Products.CPSCore.interfaces import ICPSSite … … 56 57 #"Semester", 57 58 "StudentCourseResult", 59 "StudentPastoralReport", 58 60 # move to Academics later 59 61 #"Semester", … … 125 127 temp = root.unrestrictedTraverse( "/temp_folder", None ) 126 128 if temp is not None and not sess_container_name in temp.objectIds(): 127 addSessionDataContainer( temp, sess_container_name, 9600, 4800, 129 addSessionDataContainer( temp, sess_container_name, 9600, 4800, 128 130 lazy=True, title='Faster session data container') 129 131 -
WAeUP_SRP/base/profiles/default/layouts.xml
r3359 r3682 59 59 <object name="student_transfer" meta_type="CPS Layout"/> 60 60 <object name="study_level" meta_type="CPS Layout"/> 61 <object name="student_pastoral_report" meta_type="CPS Layout"/> 61 62 <object name="university" meta_type="CPS Layout"/> 62 63 <object name="upload" meta_type="CPS Layout"/> -
WAeUP_SRP/base/profiles/default/schemas.xml
r3359 r3682 43 43 <object name="students" meta_type="CPS Schema"/> 44 44 <object name="student_study_level" meta_type="CPS Schema"/> 45 <object name="student_pastoral_report" meta_type="CPS Schema"/> 45 46 <object name="study_level" meta_type="CPS Schema"/> 46 47 <object name="university" meta_type="CPS Schema"/> -
WAeUP_SRP/base/profiles/default/types.xml
r3277 r3682 35 35 <object name="UploadsFolder" meta_type="CPS Flexible Type Information"/> 36 36 <object name="Upload" meta_type="CPS Flexible Type Information"/> 37 <object name="StudentPastoralReport" meta_type="CPS Flexible Type Information"/> 37 38 </object> -
WAeUP_SRP/base/profiles/default/types/StudentStudyLevel.xml
r3153 r3682 13 13 <property name="filter_content_types">True</property> 14 14 <property name="allowed_content_types"> 15 <element value="S emester"/>15 <element value="StudentPastoralReport"/> 16 16 </property> 17 17 <property name="allow_discussion">False</property> … … 31 31 <alias from="(Default)" to="student_index"/> 32 32 <alias from="create_do" to="waeup_document_create_do"/> 33 <alias from="created" to=""/>34 33 <alias from="view" to="student_index"/> 35 34 <action title="View" action_id="view" category="object" condition_expr="" … … 37 36 <permission value="View"/> 38 37 </action> 39 <action title="Add Course" action_id="new_entry" category="object"38 <action title="Add Pastoral Report" action_id="new_entry" category="object" 40 39 condition_expr="" 41 url_expr="string:${object_url}/content_create?type_name=Student CourseResult"42 visible=" False">40 url_expr="string:${object_url}/content_create?type_name=StudentPastoralReport" 41 visible="True"> 43 42 <permission value="Add portal content"/> 44 43 </action> 45 44 </object> 45 46 47 -
WAeUP_SRP/base/profiles/default/vocabularies.xml
r3436 r3682 53 53 <object name="aos" meta_type="CPS Vocabulary"/> 54 54 <object name="application_status" meta_type="CPS Vocabulary"/> 55 <object name="pastoral_grade" meta_type="CPS Vocabulary"/> 56 <object name="terms" meta_type="CPS Vocabulary"/> 55 57 </object> -
WAeUP_SRP/base/profiles/default/workflows.xml
r3632 r3682 130 130 <bound-workflow workflow_id="waeup_document_wf"/> 131 131 </type> 132 <type type_id="StudentPastoralReport"> 133 <bound-workflow workflow_id="waeup_student_subobject_wf"/> 134 </type> 132 135 </bindings> 133 136 </object> -
WAeUP_SRP/base/skins/waeup_default/waeup_document_create_do.py
r2013 r3682 11 11 request = context.REQUEST 12 12 13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument" ):13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument","StudentPastoralReport"): 14 14 id = datamodel.get('code') 15 15 else: -
WAeUP_SRP/base/skins/waeup_default/waeup_edit_form.pt
r2579 r3682 9 9 is_allowed context/isSectionOfficer; 10 10 metadata metadata|nothing; 11 template here/main_template/macros/master;" 11 template here/main_template/macros/master; 12 info here/getDocumentInfo;" 12 13 > 13 14 <metal:block define-macro="edit_form"> … … 78 79 <tal:block condition="not: metadata" 79 80 i18n:translate="">Edit <span id="page_title" i18n:name="title" 80 tal:content=" here/title_or_id">Page Title</span>81 tal:content="info/title">Page Title</span> 81 82 </tal:block> 82 83 <tal:block tal:condition="metadata" -
WAeUP_SRP/base/skins/waeup_student/academic_report_view.pt
r3675 r3682 42 42 </div> 43 43 </span> 44 45 46 44 47 45 <a href="" … … 61 59 62 60 <br /> 61 63 62 <table> 63 <tr> 64 <th valign='top'>Pastoral Reports:</th> 65 <td> 66 <span tal:repeat="item python:info['items']"> 67 <a href="view" 68 tal:attributes="href item/id" 69 tal:content="item/title"/><br /> 70 </span> 71 </td> 72 </tr> 64 73 <tr> 65 74 <th>Session:</th> … … 99 108 </tr> 100 109 <tr tal:repeat="row python:info[sem[2]]" 101 102 110 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> 103 111 <td align="left" valign="middle" style="width: 5%;" -
WAeUP_SRP/base/skins/waeup_student/getStudentObjectTitles.py
r3479 r3682 19 19 'StudentStudyCourse': 'Study Course', 20 20 'PaymentsFolder': 'Payments', 21 'StudentPastoralReport': 'Pastoral Report', 21 22 } -
WAeUP_SRP/ois/waeup_custom/getStudyLevelInfo.py
r3628 r3682 76 76 cert_id = student.course 77 77 info['cert_id'] = cert_id 78 if context.objectIds():79 course_results.moveResultsHere(context,student_id)80 logger.info("%s initiated moveResultsHere for %s in level %s" % (member_id,student_id,level_id))81 78 total_credits,gpa,carry_overs,normal1,normal2,normal3 = course_results.getCourses(student_id,level_id) 82 79 info['total_credits'] = total_credits … … 84 81 #start customization 85 82 83 84 86 85 max_credits = 58 87 86 info['without_score'] = False 88 87 info['without_cascore'] = False 89 88 90 91 92 93 94 95 89 items = [] 90 subobjects = context.objectValues() 91 for subobject in subobjects: 92 row = {} 93 row['id'] = subobject.getId() 94 row['title'] = '%s' % context.portal_vocabularies.terms.get(subobject.getId()) 95 items.append(row) 96 info['items'] = items 96 97 97 98
Note: See TracChangeset for help on using the changeset viewer.