- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- Location:
- WAeUP_SRP/branches/joachim-event-branch/skins/waeup_default
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_default/isCourseAdviser.py
r1558 r1596 1 ## Script (Python) "isC learanceOfficer"1 ## Script (Python) "isCourseAdviser" 2 2 ##bind container=container 3 3 ##bind context=context … … 9 9 ## 10 10 # $Id: isClearanceOfficer.py 1087 2006-12-18 22:13:31Z joachim $ 11 12 #from Products.zdb import set_trace13 #set_trace()14 11 if context.isStudent(): 15 12 return False -
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_default/waeup_edit.py
r1558 r1596 17 17 from Products.CPSDocument.utils import getFormUidUrlArg 18 18 19 import logging 20 logger = logging.getLogger('Skins.waeup_edit') 21 22 mtool = context.portal_membership 23 member = mtool.getAuthenticatedMember() 24 19 25 # Check flexible controls 20 26 #context.editLayouts(REQUEST=REQUEST) … … 25 31 if context.portal_type == "StudentStudyCourse": 26 32 if len(context.objectIds()) > 0: 27 psm = 'Edit of Stud yCourse is only possible if there are no levels'33 psm = 'Edit of StudentStudyCourse is only possible if there are no levels inside!' 28 34 args = getFormUidUrlArg(REQUEST) 29 35 args['portal_status_message'] = psm … … 58 64 department = c_path[-3], 59 65 ) 66 logger.info('%s edited %s (%s) of %s' % (member,context.id,course,student_id)) 67 60 68 elif context.portal_type == "StudentApplication": 61 69 entry_mode = ds.get('entry_mode') … … 64 72 entry_mode = entry_mode, 65 73 ) 74 logger.info('%s edited %s of %s' % (member,context.id,student_id)) 66 75 elif context.portal_type == "StudentClearance": 67 76 matric_no = ds.get('matric_no') … … 70 79 matric_no = matric_no, 71 80 ) 81 logger.info('%s edited %s of %s' % (member,context.id,student_id)) 72 82 elif context.portal_type in ("StudentPersonal",): 73 83 name = "%(firstname)s %(middlename)s %(lastname)s" % ds … … 81 91 #if ds.get('sex'): 82 92 # jamb_sex = 'F' 83 # originally imported data must be kept; app_doc should not be changed here 93 # originally imported data must be kept; app_doc should not be changed here 84 94 #app_doc.edit(mapping={'jamb_lastname': name, 85 95 # 'jamb_sex': jamb_sex … … 91 101 sex = ds.get('sex'), 92 102 ) 103 logger.info('%s edited %s of %s' % (member,context.id,student_id)) 93 104 elif context.portal_type == "Course": 94 105 dd = {}
Note: See TracChangeset for help on using the changeset viewer.