- Timestamp:
- 7 Jan 2009, 07:09:15 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r3838 r3840 640 640 ###) 641 641 642 def old____loadStudentFoto(self,student,filename,folder): ###(643 "return a student passport picture"644 app = student.application645 app_doc = app.getContent()646 #clear = student.clearance647 #clear_doc = clear.getContent()648 #matric_no = clear_doc.matric_no.upper()649 picture1 ="%s/import/%s/%s.jpg" % (i_home,folder,filename)650 picture2 ="%s/import/%s/%s.JPG" % (i_home,folder,filename)651 #import pdb;pdb.set_trace()652 if os.path.exists(picture1):653 file = open(picture1)654 elif os.path.exists(picture2):655 file = open(picture2)656 else:657 return "passport picture not found %s" % picture1658 reopened = False659 if self.portal_workflow.getInfoFor(app,'review_state',None) !='opened':660 self.portal_workflow.doActionFor(app,'open')661 reopened = True662 outfile = file.read()663 app_doc.manage_addFile('passport',664 file=outfile,665 title="%s.jpg" % filename)666 if reopened:667 self.portal_workflow.doActionFor(app,'close')668 return "successfully loaded passport picture"669 ###)670 642 671 643 security.declareProtected(ModifyPortalContent,'createOne') ###( … … 691 663 ###) 692 664 665 # Functions without docstring cannot be called from outside (via the URL), 666 # thus we can declare addStudent public. 693 667 security.declarePublic('addStudent') ###( 694 668 def addStudent(self,dict): -
WAeUP_SRP/trunk/profiles/futminna/layouts/members.xml
r3780 r3840 116 116 <property name="display_width">20</property> 117 117 <property name="size_max">0</property> 118 <property name="check_words"> minna</property>118 <property name="check_words">futmx</property> 119 119 </widget> 120 120 <widget name="roles" meta_type="Generic MultiSelect Widget">
Note: See TracChangeset for help on using the changeset viewer.