Changeset 10319 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 20 Jun 2013, 19:41:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py
r10317 r10319 53 53 column_two_fields = ('applicant_id', 'reg_number', 54 54 'firstname', 'middlename', 'lastname') 55 two_columns_design_fields = [] 55 56 56 57 @property … … 132 133 133 134 # create two-column header table 134 data_left = []135 data_right = []136 135 # append photograph to the left 137 136 img_path = getattr( 138 137 getUtility(IExtFileStore).getFileByContext(self.context), 139 138 'name', DEFAULT_PASSPORT_IMAGE_PATH) 140 data_left .append([creator.getImage(img_path)])139 data_left = [[creator.getImage(img_path)]] 141 140 table_left = Table(data_left,style=SLIP_STYLE) 141 142 142 # append column-two fields to the right 143 143 fields = [ … … 150 150 data.append(header_table) 151 151 152 # append two-column table of widgets of those fields defined in 153 # two_columns_design_fields 154 fields = [ 155 field for field in self.form_fields 156 if not field.__name__ in self.column_two_fields and 157 field.__name__ in self.two_columns_design_fields] 158 if fields: 159 data.append(creator.getWidgetsTable( 160 fields, self.context, view, lang=portal_language, 161 domain='waeup.kofa', twoDataCols=True)) 162 152 163 # append widgets except those already added in column two 153 164 dept, faculty = self._getDeptAndFaculty() 154 165 fields = [ 155 166 field for field in self.form_fields 156 if not field.__name__ in self.column_two_fields] 167 if not field.__name__ in self.column_two_fields and 168 not field.__name__ in self.two_columns_design_fields] 157 169 data.append(creator.getWidgetsTable( 158 170 fields, self.context, view, lang=portal_language,
Note: See TracChangeset for help on using the changeset viewer.