- Timestamp:
- 17 Nov 2007, 17:24:56 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2683 r2695 80 80 ###) 81 81 82 def addtodict(self,d,key,item): ###( 83 d[key].append(item) 84 return d[key] 85 ###) 86 82 87 def sleep(self,secs): ###( 83 88 "sleep" … … 88 93 ###) 89 94 95 security.declareProtected(View,'updateRoleMappingsFor') ###( 96 def updateRoleMappingsFor(self,wf_definition,ob): 97 "do so for public" 98 wf_def = getattr(self.portal_workflow,wf_definition) 99 wf_def.updateRoleMappingsFor(ob) 100 ###) 101 90 102 security.declareProtected(ModifyPortalContent,'openLog') ###( 91 103 def openLog(self,name): … … 276 288 ##if letter not in ('ABCDEFGIHKLMNOPQRSTUVWXY'): 277 289 if letter == '?': 278 letter= r.choice('ABCDEFGHKLMNPQRSTUVWXY Z')290 letter= r.choice('ABCDEFGHKLMNPQRSTUVWXY') 279 291 sid = "%c%d" % (letter,r.randint(99999,1000000)) 280 292 students = self.portal_url.getPortalObject().campus.students … … 739 751 return 740 752 pin_parts = brain.pin.split('-') 741 if pin_parts andlen(pin_parts) != 3:742 logger.info('invalid pin %s for %s , record not imported' % (brain.pin,brain.reg_no))753 if len(pin_parts) != 3: 754 logger.info('invalid pin %s for %s' % (brain.pin,brain.reg_no)) 743 755 return 744 756 student_id = self.generateStudentId('?') -
WAeUP_SRP/base/skins/waeup_student/clearance_edit.py
r2676 r2695 79 79 80 80 if clear_doc.firstname and clear_doc.lastname: 81 context.waeup_tool.updateRoleMappingsFor('waeup_studet_subobject_wf',info['per']) 81 82 if info['per_review_state'] != 'opened': 82 83 wftool.doActionFor(info['per'],'open')
Note: See TracChangeset for help on using the changeset viewer.