Changeset 1571 for WAeUP_SRP/trunk/skins/waeup_default
- Timestamp:
- 17 Mar 2007, 15:25:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py
r1456 r1571 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.