Changeset 9698 for main/waeup.kofa/trunk
- Timestamp:
- 20 Nov 2012, 09:08:13 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9697 r9698 106 106 value._p_activate() 107 107 value_dict = dict([i for i in value.__dict__.items()]) 108 value_dict[' mandatory_bool'] = value.mandatory108 value_dict['removable_by_student'] = value.removable_by_student 109 109 value_dict['mandatory'] = translate(str(value.mandatory), 'zope', 110 110 target_language=lang) … … 1306 1306 form_fields['passmark'].for_display = True 1307 1307 form_fields['credits'].for_display = True 1308 form_fields['mandatory'].for_display = True1308 form_fields['mandatory'].for_display = False 1309 1309 form_fields['automatic'].for_display = True 1310 1310 form_fields['carry_over'].for_display = True … … 2227 2227 for id in child_id: 2228 2228 # Students are not allowed to remove core tickets 2229 if not self.context[id].mandatory:2229 if self.context[id].removable_by_student: 2230 2230 del self.context[id] 2231 2231 deleted.append(id) -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studyleveleditpage.pt
r9687 r9698 27 27 <input type="checkbox" name="val_id" 28 28 tal:attributes="value value/__name__" 29 tal:condition=" not: value/mandatory_bool" />29 tal:condition="value/removable_by_student" /> 30 30 </td> 31 31 <td tal:content="value/semester">SEMESTER</td> -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r9690 r9698 535 535 grade = Attribute('grade calculated from score') 536 536 weight = Attribute('weight calculated from score') 537 removable_by_student = Attribute('Is student allowed to remove the ticket?') 537 538 538 539 title = schema.TextLine( -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r9690 r9698 190 190 return None 191 191 192 @property 193 def removable_by_student(self): 194 return not self.mandatory 195 192 196 def writeLogMessage(self, view, message): 193 197 return self.__parent__.__parent__.__parent__.writeLogMessage(view, message)
Note: See TracChangeset for help on using the changeset viewer.