- Timestamp:
- 12 Jun 2011, 20:06:56 (14 years ago)
- Location:
- main/waeup.sirp/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/setup.py
r6349 r6360 23 23 'megrok.layout', 24 24 'reportlab', 25 'PIL', 25 26 'zope.app.authentication', # BBB: During switch to grok 1.1 26 27 'zope.app.file', -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6359 r6360 540 540 form_fields = grok.AutoFields(IApplicant).omit( 541 541 'locked').omit('course_admitted') 542 form_fields['passport'].custom_widget = ThumbnailWidget542 #form_fields['passport'].custom_widget = ThumbnailWidget 543 543 form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le') 544 544 … … 570 570 from reportlab.lib.pagesizes import A4, landscape 571 571 from reportlab.lib.styles import getSampleStyleSheet 572 from reportlab.platypus import Frame, Paragraph 572 from reportlab.platypus import Frame, Paragraph, Image 573 573 574 574 pdf = canvas.Canvas('application_slip.pdf',pagesize=A4) … … 578 578 frame = Frame(1*cm,1*cm,width-(2*cm),height-(2*cm)) 579 579 self.setUpWidgets() 580 #import pdb; pdb.set_trace()580 581 581 for widget in self.widgets: 582 582 if widget.name != 'form.passport': 583 583 ptext = widget() 584 584 story.append(Paragraph(ptext, style["Normal"])) 585 else: 586 #import pdb; pdb.set_trace() 587 filename = widget._data.file.name 588 im = Image(filename) 589 story.append(im) 585 590 frame.addFromList(story,pdf) 586 591 self.response.setHeader( -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6292 r6360 1365 1365 grok.require('waeup.View') 1366 1366 pnav = 1 1367 form_fields = grok.AutoFields(ICourse)1367 #form_fields = grok.AutoFields(ICourse) 1368 1368 1369 1369 @property … … 1540 1540 grok.require('waeup.View') 1541 1541 pnav = 1 1542 form_fields = grok.AutoFields(ICertificateCourse)1542 #form_fields = grok.AutoFields(ICertificateCourse) 1543 1543 1544 1544 @property
Note: See TracChangeset for help on using the changeset viewer.