Changeset 7276 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 6 Dec 2011, 07:34:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7272 r7276 683 683 684 684 def render(self): 685 # To recall the table coordinate system: 686 # (0,0),(-1,-1) = whole table 687 # (0,0),(0,-1) = first column 688 # (-1,0),(-1,-1) = last column 689 # (0,0),(-1,0) = first row 690 # (0,-1),(-1,-1) = last row 691 685 692 SLIP_STYLE = TableStyle( 686 693 [('VALIGN',(0,0),(-1,-1),'TOP')] … … 711 718 story.append(Paragraph(f_msg, style["Normal"])) 712 719 story.append(Spacer(1, 24)) 713 714 715 # insert passport photograph720 # Setup table data 721 data = [] 722 # Insert passport photograph 716 723 img = getUtility(IExtFileStore).getFileByContext(self.context) 717 724 if img is None: 718 725 img = open(DEFAULT_PASSPORT_IMAGE_PATH, 'rb') 719 726 doc_img = Image(img.name, width=4*cm, height=3*cm, kind='bound') 720 story.append(doc_img) 721 story.append(Spacer(1, 18)) 722 723 # render widget fields 724 data = [] 727 data.append([doc_img]) 728 data.append([Spacer(1, 18)]) 729 # Render widget fields 725 730 self.setUpWidgets() 726 731 for widget in self.widgets: … … 735 740 f_text = Paragraph(f_text, style["Normal"]) 736 741 data.append([f_label,f_text]) 742 # Create table 737 743 table = Table(data,style=SLIP_STYLE) 738 744 story.append(table)
Note: See TracChangeset for help on using the changeset viewer.