Changeset 2031 for WAeUP_SRP/trunk/skins
- Timestamp:
- 18 Jul 2007, 07:51:47 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/getSessionId.py
r1764 r2031 17 17 import DateTime 18 18 now = DateTime.DateTime() 19 if now.month() > 7:19 if now.month() > 8: 20 20 s = "%s" % now.year() 21 21 else: -
WAeUP_SRP/trunk/skins/waeup_design/slip_template.pt
r1803 r2031 68 68 style="margin: 0px;" 69 69 tal:attributes="onload here/getOnLoad|string:setFocus();"> 70 <div> 71 <a href="http://uniben.waeup.org/accessibility" accesskey="0"></a> 72 <a href="http://uniben.waeup.org/" accesskey="1"></a> 73 <a href="#content" accesskey="2"></a> 74 <a href="#menu" accesskey="3"></a> 75 <a href="http://uniben.waeup.org/advanced_search_form" 76 accesskey="4"></a> 77 <a href="http://uniben.waeup.org/" accesskey="7"></a> 78 </div> 79 70 80 71 <table summary="Logo Block" 81 72 style="margin-left: auto; margin-right: auto; width: 100%;" -
WAeUP_SRP/trunk/skins/waeup_student/course_registration_slip.pt
r1897 r2031 17 17 view_only info/view_only" 18 18 > 19 <h3>Course Registration Slip </h3>19 <h3>Course Registration Slip for <span tal:content="here/title_or_id" /></h3> 20 20 <br /> 21 21 <div tal:condition="validated"> -
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1986 r2031 33 33 cert_id = student.course 34 34 current_level = student.level 35 current_session = student.session 35 36 in_progress = request.get('in_progress','not started') 36 37 #level_created = request.get('level_created','xxx') … … 60 61 level = getattr(context,"%s" % current_level) 61 62 context.portal_workflow.doActionFor(level,'open') 62 study_session = context.getSessionString()63 level.getContent().edit(mapping={'session': study_session})63 #study_session = context.getSessionString() 64 level.getContent().edit(mapping={'session': current_session}) 64 65 context.portal_workflow.doActionFor(level,'close_for_edit') 65 66 context.waeup_tool.doCommit() … … 133 134 context.waeup_tool.doCommit() 134 135 logger.info('%s finished to create level %s' % (student.id,current_level)) 136 137 if current_session == '05': 138 next_session = '06' 139 next_level = "%s" % (int(current_level) + 100) 140 study_course = getattr(student,'study_course') 141 context.portal_workflow.doActionFor(study_course,'open') 142 study_course_doc = study_course.getContent() 143 study_course_doc.edit(mapping= {'current_level': next_level, 144 'current_session': next_session,}) 145 context.portal_workflow.doActionFor(study_course,'close_for_edit') 146 135 147 return response.redirect("%s/%s" % (context.absolute_url(),current_level)) 136 148 -
WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py
r2011 r2031 123 123 info['credits_total'] = credits_total 124 124 info['credits_exceeded'] = credits_total > 51 125 session_of_level = context.getContent().session 126 info['submission_allowed']= not info['credits_exceeded'] and session_of_level == context.getSessionId()[-2:] 125 127 carry_overs.sort(cmp_semester_id) 126 128 info['carry_overs'] = carry_overs -
WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt
r1897 r2031 129 129 130 130 <br /><br /> 131 <input tal:condition=" not: info/credits_exceeded"131 <input tal:condition="info/submission_allowed" 132 132 type="submit" name="register_courses:method" 133 class="context" value="Submit" /> 133 class="context" value="Submit to Course Adviser" 134 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 135 ('Do you really want to submit the course list?', )" /> 134 136 <span tal:condition="info/credits_exceeded"> 135 137 <font color="red"> <strong>Your total credits exceed 50!</strong></font>
Note: See TracChangeset for help on using the changeset viewer.